mysql_errno([link_id])
This function returns the numerical value of the error message from the last MySQL operation on the default or specified (link_id) MySQL connection.