Re: Database Design + Parts Explosion
Posted by: Joshua Gentes
Date: May 24, 2007 07:24AM

Thanks for your continued help Andy, but I am not getting anything printing out. I have checked that I am connecting correct and I am, but it fails after I attempt to execute the query and print out the result? I tried switching the table calls in the join as well, and still I haven't been able to print out any results?
PS I am doing this in PHP, and I realize it would be better to fetch by association, but I cannot even fetch by a row :/

$query = mysql_query("SELECT p.part_id, p.serial, p.description, link.quantity, p.part_status 
FROM  parts as p JOIN parts_has_children as link ON link.child_id = p.parts_id 
WHERE link.parent_id = 34 AND p.parts_status = 1");

$row = mysql_fetch_row($query);
print $row[0] . "<br />";
print $row[1] . "<br />";

Options: ReplyQuote


Subject
Written By
Posted
Re: Database Design + Parts Explosion
May 24, 2007 07:24AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.