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

PHP mysqli_connect_errno() Function

PHP mysqli_connect_errno() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Example

Return the error code of the last connection error:


Definition and Usage

The mysqli_connect_errno() function returns the error code of the last connection error.


Syntax

mysqli_connect_errno()

;

Technical Details

Return Value: Returns the error code value, or 0 if no error occurred.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual