PHP mysqli_errno() Function

PHP mysqli_errno() function is used to get the error code for the most recent function call.

Syntax

mysqli_errno() Function Parameter

ParameterDescription
connection :Required parameter. The MySQL connection to be used

mysqli_errno() Function Return Value

Return Values :An error code for the last call, if it failed. 0 means no error occurred.

mysqli_errno() Function Example