($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: [
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