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

PHP mysqli_error() Function

PHP mysqli_error() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Example

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


Definition and Usage

The mysqli_error() function returns the last error description from the most recently called function.


Syntax

mysqli_error(

connection

)

;

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

Technical Details

Return Value: Returns a string containing the error description, or "" if no error occurred.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual