PHP mysqli_errno() function is used to get the error code for the most recent function call.
Syntax
Parameter | Description |
---|---|
connection : | Required parameter. The MySQL connection to be used |
Return Values : | An error code for the last call, if it failed. 0 means no error occurred. |