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

mysqli_errno()

The mysqli_errno() function returns the numerical error code for the most recent function call on a specific connection.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: Unlike connect_errno, this function requires the connection as a parameter. It is used to determine why an SQL command failed (e.g., code 1146 means the table does not exist). Test it at home like this: