PHP mysqli_error() function is used to get last error message for the most recent MySQLi function call.
Syntax
Parameter | Description |
---|---|
connection : | Required parameter. The MySQL connection to be used |
Return Values : | A string that describes the error. An empty string if no error occurred. |