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