note 68812 deleted from function.mysqli-fetch-array by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 02:16:04 +0000 |
| Subject: | note 68812 deleted from function.mysqli-fetch-array by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134090@lists.php.net to get a copy of this message | ||
Note Submitter: travis at ignw dot com
----
With the older mysql functions, you could iterate through all the rows in your result set with:
<? while($row=mysql_fetch_array($result)){
dostuff;
} ?>
However, this functionality, at least in my experience, doesn't work with mysqli. This does:
<? $row = mysqli_fetch_array($result);
while(!is_null($row)){
dostuff;
$row = mysqli_fetch_array($result);
} ?>