略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SQLite3::lastErrorMsg

2024-11-15

SQLite3::lastErrorMsg

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

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

说明

public SQLite3::lastErrorMsg(): string

Returns English text describing the most recent failed SQLite request.

参数

此函数没有参数。

返回值

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

add a noteadd a note

User Contributed Notes 1 note

up
-4
shafyxl at gmail dot com
4 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())
                {

官方地址:https://www.php.net/manual/en/sqlite3.lasterrormsg.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3