mysql_errno

PHP 4, PHP 5
mysql_errno - Returns the numerical value of the error message from previous MySQL operation
Manual
Code Examples

Example #1 mysql_errno example

Result: 1049: Unknown database 'nonexistentdb' 1146: Table 'kossu.nonexistenttable' doesn't exist
PHP Version: