Oracle 5.0 Reference Manual page 2469

Table of Contents

Advertisement

The above examples will output:
Error: 1146.
See Also
mysqli_stmt_error
mysqli_stmt_sqlstate
20.7.3.10.9. mysqli_stmt::$error_list,
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqli_stmt::$error_list
mysqli_stmt_error_list
Returns a list of errors from the last statement executed
Description
Object 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
stmt
Return Values
A list of errors, each as an associative array containing the errno, error, and sqlstate.
Examples
Example 20.159. Object oriented style
<?php
/* Open a connection */
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$mysqli->query("CREATE TABLE myCountry LIKE Country");
$mysqli->query("INSERT INTO myCountry SELECT * FROM Country");
$query = "SELECT Name, Code FROM myCountry ORDER BY Name";
MySQL Improved Extension (Mysqli)
mysqli_stmt_error_list
Procedural style only: A statement identifier returned by
mysqli_stmt_init.
2449

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents