"Library routine called out of sequence"
Status: Alpha
Brought to you by:
bfleisch
<?
$db = sqlite3_open('info.db');
$a = sqlite3_query($db, 'select * FROM info');
while ($r = sqlite3_fetch_array($a))
{
print_r($r);
}
sqlite3_query_close($a);
sqlite3_close($db);
unset($db); // <--- if don't use, we will got bug when trying to execute sqlite3_query or sqlite3_exec
$db = sqlite3_open('cache.db');
echo $db, "\n\n";
$a = sqlite3_query($db, 'select * from cache;');
while ($r = sqlite3_fetch_array($a))
{
print_r($r);
}
sqlite3_query_close($a);
sqlite3_close($db);
?>