note 68534 added to function.mysql-fetch-field
| From: | dyer85 at gmail dot com | Date: | Tue, 01 Aug 2006 06:18:30 +0000 |
| Subject: | note 68534 added to function.mysql-fetch-field | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115389@lists.php.net to get a copy of this message | ||
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;
}
?>
----
Server IP: 216.194.113.175
Probable Submitter: 71.105.7.198
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-field.php
Edit -- https://master.php.net/note/edit/68534
Del: integrated -- https://master.php.net/note/delete/68534/integrated
Del: useless -- https://master.php.net/note/delete/68534/useless
Del: bad code -- https://master.php.net/note/delete/68534/bad+code
Del: spam -- https://master.php.net/note/delete/68534/spam
Del: non-english -- https://master.php.net/note/delete/68534/non-english
Del: in docs -- https://master.php.net/note/delete/68534/in+docs
Del: other reasons-- https://master.php.net/note/delete/68534
Reject -- https://master.php.net/note/reject/68534
Search -- https://master.php.net/manage/user-notes.php