⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_connect_errno()

The mysqli_connect_errno() function returns the error code from the last connection error, if one exists.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: This function is primarily useful for automated error handling, as it only returns a number (e.g., 1045 for an incorrect password). Test it at home like this: