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

search for in the

SQLite3::lastInsertRowID> <SQLite3::lastErrorCode
[edit] Last updated: Fri, 23 Mar 2012

view this page in

SQLite3::lastErrorMsg

(PHP 5 >= 5.3.0)

SQLite3::lastErrorMsgBaşarısız olan son SQLite isteği ile ilgili İngilizce iletiyi döndürür

Açıklama

public string SQLite3::lastErrorMsg ( void )

Başarısız olan son SQLite isteğinin başarısızlığını açıklayan İngilizce iletiyi döndürür.

Değiştirgeler

Bu işlevin değiştirgesi yoktur.

Dönen Değerler

Başarısızlığın sebebini açıklayan iletiyi içeren bir dizge döner.



add a note add a note User Contributed Notes SQLite3::lastErrorMsg
ivan at ich dot pro dot br 02-Sep-2009 03:46
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