|
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
$stmt
)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
<?php Example #2 Procedural style
<?php The above examples will output: Array ( [0] => Array ( [errno] => 1146 [sqlstate] => 42S02 [error] => Table 'world.myCountry' doesn't exist ) ) See Also
|