Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP mysqli_error_list() Function

PHP mysqli_error_list() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Example

Return the last error code from the most recently called function:


Definition and Usage

The mysqli_error_list() function returns a list of errors from the most recently called function.


Syntax

mysqli_error_list(

connection

)

;

Parameters Description
connection Required. Specifies the MySQL connection to use.

Technical Details

Return Value: Returns a list of errors. Each error is an associative array with errno (error code), error (error text) and sqlstate.
PHP Version: 5.4+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual