Error number displaying after execution of a query
MySQL query on error returns an error number for reference. This error number can be collected or can be further processed as per requirement. Even we can post the error number along with error message to an email address. Getting the error number is simple. We have to use mysql_errno() function. Please note that this command will return the error number associated with most recent MySQL query. It will return zero if no error is associated.