|
mysqli::$sqlstatemysqli_sqlstateReturns the SQLSTATE error from previous MySQL operation DescriptionObject-oriented style string$mysqli->sqlstate;
Procedural style
string mysqli_sqlstate(mysqli
$mysql )
Returns a string containing the SQLSTATE error code for the last error.
The error code consists of five characters.
Parameters
Return Values
Returns a string containing the SQLSTATE error code for the last error.
The error code consists of five characters. ExamplesExample #1 $mysqli->sqlstate example Object-oriented style
Procedural style
The above examples will output: Error - SQLSTATE 42S01. See Also
|