|
mysqli_stmt::$error_listmysqli_stmt_error_listReturns a list of errors from the last statement executed BeschreibungObjektorientierter Stil array$mysqli_stmt->error_list;
Prozeduraler Stil
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. Parameter-Liste
RückgabewerteA list of errors, each as an associative array containing the errno, error, and sqlstate. BeispieleBeispiel #1 Objektorientierter Stil
<?phpBeispiel #2 Prozeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe:
Array
(
[0] => Array
(
[errno] => 1146
[sqlstate] => 42S02
[error] => Table 'world.myCountry' doesn't exist
)
)
Siehe auch
|