The mysqli_connect_errno() function returns the error code from the last connection error, if one
exists.
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:
mysqli_connect_error() for a comprehensive output.