PHP mysqli_errno() Function
Example
Return the last error code from the most recently called function:
Definition and Usage
The mysqli_errno() function returns the last error code from the most recently called function.
Syntax
mysqli_errno(
connection
)
;
| Parameters | Description |
|---|---|
| connection | Required. Specifies the MySQL connection to use. |
Technical Details
| Return Value: | Returns the error code value, or 0 if no error occurred. |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference Manual