note 38892 added to function.sqlite-fetch-array

From: Date: Sat, 10 Jan 2004 11:41:47 +0000
Subject: note 38892 added to function.sqlite-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-63251@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.sqlite-fetch-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38892 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38892&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38892&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63251) next »