note 68534 deleted from function.mysql-fetch-field by bjori
| From: | bjori@php.net | Date: | Tue, 01 Aug 2006 09:04:54 +0000 |
| Subject: | note 68534 deleted from function.mysql-fetch-field by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115402@lists.php.net to get a copy of this message | ||
Note Submitter: dyer85 at gmail dot com
----
Concerning the previous function, it would be more efficient to do:
<?php
function queryHash($qry) {
$data = array();
$row = array();
$i = 0;
while ( $row = mysql_fetch_assoc($qry) )
$data[$i++] = $row;
return $data;
}
?>