RE: [PHP-WIN] foreach with mysql

2003-03-11 Thread Kyle Williamson
Why a foreach? while($row = mysql_fetch_array($result)) { echo "$row[name]"; } >= Original Message From <[EMAIL PROTECTED]> = >Hi >I am trying to use a FOREACH command to go through a mysql result with 2 >columns. >They are ID and name >I need the name one the ID one is just for referre

[PHP-WIN] foreach with mysql

2003-03-11 Thread s.garriock
Hi I am trying to use a FOREACH command to go through a mysql result with 2 columns. They are ID and name I need the name one the ID one is just for referrence. Anyone got the syntax for it? Thanks tons >From Shaun Garriock RGC Webmaster *** The contents of this message are confidential and are