php[tek] 2018 : Call for Speakers

SQLite3::lastErrorMsg

(PHP 5 >= 5.3.0)

SQLite3::lastErrorMsg Returns English text describing the most recent failed SQLite request

Descrizione

public string SQLite3::lastErrorMsg ( void )

Returns English text describing the most recent failed SQLite request.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns an English string describing the most recent failed SQLite request.

add a note add a note

User Contributed Notes 1 note

up
0
shafyxl at gmail dot com
1 month 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