CakeFest 2024: The Official CakePHP Conference

SQLite3::lastErrorMsg

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

SQLite3::lastErrorMsg Devolver texto en inglés describiendo la petición SQLite que falló más recientemente

Descripción

public SQLite3::lastErrorMsg(): string

Devuelve texto en inglés describiendo la petición SQLite que falló más recientemente

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve texto en inglés describiendo la petición SQLite que falló más recientemente

add a note

User Contributed Notes 1 note

up
-12
shafyxl at gmail dot com
6 years ago
$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())
{
To Top