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

PHP mysqli_connect_error() Function

PHP mysqli_connect_error() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Example

Return the error description of the last connection error:


Definition and Usage

The mysqli_connect_error() function returns the error description of the last connection error.


Syntax

mysqli_connect_error()

;

Technical Details

Return Value: Returns a string describing the error, or NULL if no error occurred.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual