|
mysqli_stmt::$error_listmysqli_stmt_error_listReturns a list of errors from the last statement executed DescriptionObject-oriented style array$mysqli_stmt->error_list;
Procedural style
array mysqli_stmt_error_list(mysqli_stmt
$statement )Returns an array of errors for the most recently invoked statement function that can succeed or fail. Parameters
Return ValuesA list of errors, each as an associative array containing the errno, error, and sqlstate. ExamplesExample #1 Object-oriented style
Example #2 Procedural style
The above examples will output: Error: Array ( [0] => Array ( [errno] => 1146 [sqlstate] => 42S02 [error] => Table 'world.myCountry' doesn't exist ) ) See Also
|