note 7657 modified in while by ronabop
| From: | ronabop@php.net | Date: | Fri, 18 Aug 2000 04:36:25 +0000 |
| Subject: | note 7657 modified in while by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2397@lists.php.net to get a copy of this message | ||
To use multiple conditions in a while statement, you just need to remember the order of operations,
and put things in parenthesis.
while(($row = mysql_fetch_row($results)) && ($count++<10));
http://www.php.net/manual/control-structures.while.php