note 38892 deleted from function.sqlite-fetch-array by nlopess
| From: | nlopess@php.net | Date: | Sat, 10 Jan 2004 11:55:19 +0000 |
| Subject: | note 38892 deleted from function.sqlite-fetch-array by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63252@lists.php.net to get a copy of this message | ||
Note Submitter: denzo@xboxcovers.net
----
I've created this function which will work as other sql's fetch_row:
<?php
function sqlite_fetch_row($dbconnection, $query) {
while($array = sqlite_fetch_array($dbconnection, $query))
{
$count = 0;
foreach($array as $k => $v)
{
$return[$count][] = $v;
$count++;
}
}
return $return;
}
?>
It required the $dbconnection and a query which must already be queried.
Denzo