|
mysqli_stmt::$errormysqli_stmt_errorReturns a string description for last statement error DescriptionObject oriented style string$mysqli_stmt->error;
Procedural style
string mysqli_stmt_error
( mysqli_stmt
$stmt
)Returns a string containing the error message for the most recently invoked statement function that can succeed or fail. Parameters
Return ValuesA string that describes the error. An empty string if no error occurred. ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above examples will output: Error: Table 'world.myCountry' doesn't exist. See Also
|