|
PHP5中文手册
mysqli_error(PHP 5) mysqli_error — Returns a string description of the last error 说明Procedural style:
string mysqli_error
( mysqli $link
)
Object oriented style (property) mysqli
string$error;
Returns the last error message for the most recent MySQLi function call 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 上例将输出:
|