$db= new SQLite3('db1.db');
$results= $db->query('SELECT * FROM table1');
if($results==FALSE)
{
echo "Error in fetch ".$db->lastErrorMsg();
}
else
{
while ($row= $results->fetchArray())
{