/* close statement */
mysqli_stmt_close($stmt);
}
/* close connection */
mysqli_close($link);
?>
The above examples will output:
City: Benin City
See Also
mysqli_prepare
20.7.3.10.8. mysqli_stmt::$errno,
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysqli_stmt::$errno
mysqli_stmt_errno
Returns the error code for the most recent statement call
Description
Object oriented style
int
mysqli_stmt->errno ;
Procedural style
int mysqli_stmt_errno(
mysqli_stmt stmt);
Returns the error code for the most recently invoked statement function that can succeed or fail.
Client error message numbers are listed in the MySQL
numbers are listed in mysqld_error.h. In the MySQL source distribution you can find a complete list
of error messages and error numbers in the file Docs/mysqld_error.txt.
Parameters
stmt
Return Values
An error code value. Zero means no error occurred.
Examples
Example 20.157. Object oriented style
MySQL Improved Extension (Mysqli)
Countrycode: NGA
mysqli_stmt_errno
Procedural style only: A statement identifier returned by
mysqli_stmt_init.
header file, server error message
errmsg.h
2447
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers