note 37736 deleted from function.mysql-fetch-array by ronabop
| From: | ronabop@php.net | Date: | Tue, 25 Nov 2003 06:36:09 +0000 |
| Subject: | note 37736 deleted from function.mysql-fetch-array by ronabop | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-60945@lists.php.net to get a copy of this message | ||
Note Submitter: brendan [at] unsharpmask [dot] com
----
Often I need to store the entire result as an array, not just a single row... so I wrote this simple
function.
<?php
function mysql_fetch_array_r($result, $fetch = MYSQL_BOTH){
while ($row = mysql_fetch_array($result,$fetch)){
$whole_result[] = $row;
}
return $whole_result;
}
?>