note 96197 deleted from function.mysql-fetch-array by danbrown
| From: | danbrown@php.net | Date: | Sun, 14 Feb 2010 04:57:05 +0000 |
| Subject: | note 96197 deleted from function.mysql-fetch-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165945@lists.php.net to get a copy of this message | ||
Note Submitter: veselin
----
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!