so you are trying to combine 2 tables?
first question, does the table 'warranty' have a field that ties it with the product_status?
if it does try this sql statement:
SELECT * FROM product_status, warranty WHERE product_status.product_id=warranty.field_that_matches AND product_id ='$pid';
(at least it will be somethign similar)
I've noticed, in this line:
$query = "SELECT warranty_comment,aw_tag FROM warranty";
you are getting ALL of the data, not just a specific sorted data.
so if you can't see any data, other than the first row, you have to loop it. so you'd add somehting like this:
while($row = mysql_fetch_array($query)){
echo $row['field1'];
}
if none of this worked, then i just didn't understand your question.