RE: [PHP-DB] Re: Using A Query Results Multiple Times

2001-11-02 Thread Rick Emery
($result, 0 ); while ($row = mysql_fetch_row($result) ) { ...do some other stuff... } Thus, you don't have to store it in an array. -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 7:20 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [

[PHP-DB] Re: Using A Query Results Multiple Times

2001-11-01 Thread Chris Lee
just put it in a loop. while($val = mysql_fetch_result($result)) $array[] = $val; foreach($count = 0; $count < count($array); $count++) echo $array[$count]['product_name']; foreach($count = 0; $count < count($array); $count++) echo $array[$count]['product_name']; php4 has foreach() its be