<?php /* Object Oriented Approach */
$db = new sqlite_db("/path/to/database");
$r = $db->query("INSERT INTO tbl VALUES(1,2,3)");
if (!$r) {
$error_code = $db->last_error();
$error_str = sqlite_error_string($error_code);
}
?>