> Isn't this suppose to be an infinite loop?
> 
> while ($row is assigned to mysql_fetch_array($query)) {
> do stuffs;
> }
> 
> someone correct me if I'm wrong?

They key here is that there's a single "=" in the condition.

<?
   while ($row = mysql_fetch_array($query))
   {
   }
?>

... this is actually "while 'row equals the result of 
mysql_fetch_array($query)' returns true, do this..."

mysql_fetch_array returns false when you run out of rows.

Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to