PHP mysqli_sqlstate() function returns the SQLSTATE error code from the previous MySQL operation.
Syntax
Parameter | Description |
---|---|
connection : | Required parameter. The MySQL connection to be used |
Return Values : | Returns a string containing the SQLSTATE error code for the last error. |