Return to Snippet

Revision: 6778
at June 13, 2008 10:47 by Tate


Initial Code
$result = mysql_query($query) or die($query);

$returnarray = array ();
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
  $returnarray[] = $row;
}

return $returnarray;

Initial URL

                                

Initial Description

                                

Initial Title
Return array from MySQL query

Initial Tags

                                

Initial Language
PHP