A little sample...
function execsql($asql) {
$db = new SQLite3('jsonrpc.db3');
$query = $db->exec($asql);
if (!$query) {
throw new Exception( $db->lastErrorMsg() );
} else {
return $query->changes();
}
}
SQLite3::lastErrorMsg
(PHP 5 >= 5.3.0)
SQLite3::lastErrorMsg — Returns English text describing the most recent failed SQLite request
Opis
public string SQLite3::lastErrorMsg
( void
)
Returns English text describing the most recent failed SQLite request.
Parametry
Ta funkcja nie posiada parametrów.
Zwracane wartości
Returns an English string describing the most recent failed SQLite request.
ivan at ich dot pro dot br
02-Sep-2009 03:46
