note 55470 deleted from function.mysql-fetch-row by philip
| From: | philip@php.net | Date: | Mon, 26 Feb 2007 06:53:24 +0000 |
| Subject: | note 55470 deleted from function.mysql-fetch-row by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123868@lists.php.net to get a copy of this message | ||
Note Submitter: topera at gmail dot com
----
If you want a function like pg_fetch_all(), you may use this...
<?
function mysql_fetch_all($result) {
$i = 0;
for ($i=0; $i<mysql_num_rows($result); $i++) {
$return[$i] = mysql_fetch_array($result);
}
return $return;
}
?>
Rafael Pereira dos Santos