note 35683 modified in function.mysql-fetch-row by didou
| From: | didou@php.net | Date: | Thu, 11 Sep 2003 07:18:10 +0000 |
| Subject: | note 35683 modified in function.mysql-fetch-row by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56055@lists.php.net to get a copy of this message | ||
<?php
function mysql_buffered_query($data_select, $data_connection)
{
$sql_query = mysql_query($data_select, $data_connection);
while($tmp = mysql_fetch_row($sql_query))
{
$info_elements[]=$tmp;
}
return $info_elements;
}
?>
--was--
Yeah yeah yeah... I forgot a return at the end :D
It's gotta be:
function mysql_buffered_query($data_select, $data_connection)
{
$sql_query = mysql_query($data_select, $data_connection);
while($tmp = mysql_fetch_row($sql_query))
{
$info_elements[]=$tmp;
}
return $info_elements;
}
http://www.php.net/manual/en/function.mysql-fetch-row.php