note 79083 added to function.mysql-fetch-array

From: Date: Sat, 10 Nov 2007 04:53:56 +0000
Subject: note 79083 added to function.mysql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-132156@lists.php.net to get a copy of this message
Little improvement to the previous function. function mysql_fetch_rowsarr($result, $numass=MYSQL_BOTH) { $got = array(); if(mysql_num_rows($result) == 0) return $got; mysql_data_seek($result, 0); while ($row = mysql_fetch_array($result, $numass)) { array_push($got, $row); } return $got; } ---- Server IP: 64.71.164.2 Probable Submitter: 68.34.94.49 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-array.php Edit -- https://master.php.net/note/edit/79083 Del: integrated -- https://master.php.net/note/delete/79083/integrated Del: useless -- https://master.php.net/note/delete/79083/useless Del: bad code -- https://master.php.net/note/delete/79083/bad+code Del: spam -- https://master.php.net/note/delete/79083/spam Del: non-english -- https://master.php.net/note/delete/79083/non-english Del: in docs -- https://master.php.net/note/delete/79083/in+docs Del: other reasons-- https://master.php.net/note/delete/79083 Reject -- https://master.php.net/note/reject/79083 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132156) next »