|
PHP5中文手册
mysqli_stmt_errormysqli_stmt->error(PHP 5) mysqli_stmt->error — Returns a string description for last statement error 说明Procedural style:
string mysqli_stmt_error
( mysqli_stmt $stmt
)
Object oriented style (property): mysqli_stmt
string$error;
Returns a containing the error message for the most recently invoked statement function that can succeed or fail. 返回值A string that describes the error. An empty string if no error occurred. 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|