The mysqli_errno() function returns the numerical error code for the most recent function call on a
specific connection.
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: