CREATE TABLE sqlite_sequence (name, seq);
<?php
$db = new SQLite3('test.db');
/*foreach ($_GET as $key => $value) {
$db->query("INSERT INTO temp (temp) VALUES ('$value')");
}*/
$results = $db->query('SELECT time()');
echo = $db->lastInsertRowid();
$db->close();
?>