note 96197 added to function.mysql-fetch-array

From: Date: Sun, 14 Feb 2010 00:42:22 +0000
Subject: note 96197 added to function.mysql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-165939@lists.php.net to get a copy of this message
Another good solution to put table in array: <?php $query = "SELECT * FROM table"; $result = mysql_query($query); while($row = mysql_fetch_assoc($result)) { $rows[] = $row; } ?> Your table is in the $rows array. Enojy! ---- Server IP: 69.147.83.197 Probable Submitter: 93.152.150.163 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-array.php Edit -- https://master.php.net/note/edit/96197 Del: integrated -- https://master.php.net/note/delete/96197/integrated Del: useless -- https://master.php.net/note/delete/96197/useless Del: bad code -- https://master.php.net/note/delete/96197/bad+code Del: spam -- https://master.php.net/note/delete/96197/spam Del: non-english -- https://master.php.net/note/delete/96197/non-english Del: in docs -- https://master.php.net/note/delete/96197/in+docs Del: other reasons-- https://master.php.net/note/delete/96197 Reject -- https://master.php.net/note/reject/96197 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165939) next »