note 65364 added to function.mysql-fetch-row

From: Date: Sat, 29 Apr 2006 15:27:10 +0000
Subject: note 65364 added to function.mysql-fetch-row
Groups: php.notes 
Request: Send a blank email to php-notes+get-110095@lists.php.net to get a copy of this message
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) ---- Server IP: 81.92.200.26 Probable Submitter: 62.169.94.132 ---- 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-row.php Edit -- http://master.php.net/note/edit/65364 Del: integrated -- http://master.php.net/note/delete/65364/integrated Del: useless -- http://master.php.net/note/delete/65364/useless Del: bad code -- http://master.php.net/note/delete/65364/bad+code Del: spam -- http://master.php.net/note/delete/65364/spam Del: non-english -- http://master.php.net/note/delete/65364/non-english Del: in docs -- http://master.php.net/note/delete/65364/in+docs Del: other reasons-- http://master.php.net/note/delete/65364 Reject -- http://master.php.net/note/reject/65364 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110095) next »