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
Last updated: Fri, 13 Nov 2009

view this page in

SQLite3::lastErrorMsg

(PHP 5 >= 5.3.0)

SQLite3::lastErrorMsg 直近で失敗した SQLite リクエストについての英文テキストの説明を返す

説明

public string SQLite3::lastErrorMsg ( void )

直近で失敗した SQLite リクエストについての英文テキストの説明を返します。

パラメータ

この関数にはパラメータはありません。

返り値

直近で失敗した SQLite リクエストについての英文テキストの説明を返します。



add a note add a note User Contributed Notes
SQLite3::lastErrorMsg
ivan at ich dot pro dot br
02-Sep-2009 04: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();
    }
      
}

SQLite3::lastInsertRowID> <SQLite3::lastErrorCode
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites