mysqli_errno

(PHP 5 CVS only)

mysqli_errno -- Returns the error code for the most recent function call

Description

int mysqli_errno ( resource link)

The mysqli_errno() function will return the last error code for the most recent MySQLi function call that can succeed or fail with respect to the database link defined by the link parameter. If no errors have occured, this function will return zero.

Note: A complete list of the error codes and their meanings can be found in the constants section of the MySQLi documentation

See also mysqli_error().