[PHP] Why doesn't the second instance work?

2002-09-02 Thread Michael Knauf
I'm creating a list/menu form item and populating it from a database,=20 the code snippet looks like this: =00 Edit an item: "; echo ""; for ($i=3D0; $i <$num_results; $i++) { $row =3D mysql_fetch_array($result); echo " $row[id], = $row[productname]"; } echo ""; echo ""; echo "";

[PHP] why does my querry work in the mysql client but not in php?

2002-08-29 Thread Michael Knauf
I'm in OS X 10.2 (Jaguar) Apache/PHP/MySQL are all playing happily together, so it's time to get some work done. From the MySQL client, this query does what I expect it to: update endpage set productname='Berenice lamp', bgcolor='eec472', imgsrc='bereniceep.jpg', img_orientation='horizontal',