downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SQLite3::lastInsertRowID> <SQLite3::lastErrorCode
[edit] Last updated: Fri, 24 May 2013

view this page in

SQLite3::lastErrorMsg

(PHP 5 >= 5.3.0)

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

Descripción

public string SQLite3::lastErrorMsg ( void )

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 add a note User Contributed Notes SQLite3::lastErrorMsg - [1 notes]
up
0
ivan at ich dot pro dot br
3 years ago
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();
    }
      
}

 
show source | credits | stats | sitemap | contact | advertising | mirror sites