note 65364 deleted from function.mysql-fetch-row by nlopess
| From: | nlopess@php.net | Date: | Sat, 29 Apr 2006 15:29:59 +0000 |
| Subject: | note 65364 deleted from function.mysql-fetch-row by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-110098@lists.php.net to get a copy of this message | ||
Note Submitter: bruno dot bernardino at NOSPAM dot gmail dot com
----
I believe you forgot the ++ so the result gets matrixized, so the correct function should be (at
least for me works great):
<?php
function mysql_fetch_all($result) {
while($row=mysql_fetch_array($result)) {
$return[] = $row++;
}
return $return;
}
?>
Bruno Morais Bernardino (www.brunobernardino.com)