|
mysqli_stmt::$sqlstatemysqli_stmt_sqlstateReturns SQLSTATE error from previous statement operation DescriptionObject-oriented style string$mysqli_stmt->sqlstate;
Procedural style
string mysqli_stmt_sqlstate(mysqli_stmt
$statement )
Returns a string containing the SQLSTATE error code
for the most recently invoked prepared statement function that can succeed or fail.
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 Object-oriented style
Example #2 Procedural style
The above examples will output: Error: 42S02. Notes
See Also
|