note 37737 added to function.mysql-fetch-array

From: Date: Tue, 25 Nov 2003 02:38:12 +0000
Subject: note 37737 added to function.mysql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-60941@lists.php.net to get a copy of this message
I have updated my function. It now optionally accepts a row name to index by. <?php     function mysql_fetch_array_r($result, $index_row = "", $fetch = MYSQL_ASSOC){         while ($row = mysql_fetch_array($result,$fetch)){             $whole_result[$row[$index_row]] = $row;         }     return $whole_result; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37737 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37737&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37737&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60941) next »