>From http://www.mysql.com/doc/n/o/node_567.html
For the connection specified by mysql, mysql_errno() returns the error code for the most recently invoked API function that can succeed or fail. A return value of zero means that no error occurred. Client error message numbers are listed in the MySQL `errmsg.h' header file. Server error message numbers are listed in `mysqld_error.h'. In the MySQL source distribution you can find a complete list of error messages and error numbers in the file `Docs/mysqld_error.txt'. Steve Meyers > -----Original Message----- > From: Javier Armendáriz [mailto:[EMAIL PROTECTED]] > Sent: Sunday, October 21, 2001 5:49 AM > To: DL Neil; [EMAIL PROTECTED] > Subject: Re: Error codes list > > > Thanks a lot, as you know, I need to translate error codes (such as > duplicate references) to the future (i hope) program operator. The error > codes are for operators (those who write data into the catalog), not for > public, I know PHP error reporting functions with MySQL, but i would like > to write some functions to analize errors when they happend, break the > program execution and tell operators what is happending (in > spanish and in > a language they could understand). > > What i´m looking for is a complet lits in some way like this : > > Error code numbrer (not DEFCON 5 :-)) ----> Error descripcion > > > Thanks a lot for your interest and help > > Apologize my macarronic english, when i get rich with this progect i´ll > travel to great britain in order to learn some good english (and taste > english beer and women) > > > At 12:02 21/10/01 +0100, DL Neil wrote: > >Hi > > > >Maybe it is in the manual, but i can´t find it in the way i need. > >Does anybody know where to find a complet list of MySQL error codes with > >number and descripcion in order to make a library for handling and > >reporting alerts to users in php???? > > > > > >Hola Javier, > > > >Yes it is in the manual - but try the PHP manual (not MySQL's). > >The PHP online annotated manual is 'down' at the moment (update > >happening?) so I can't give you a reference - apologies. > > > >In addition to the familiar PHP-MySQL functions, eg > mysql_query($sqlQuery, > >$dbLink) > >There are two more: mysql_errno() and mysql_error() which return > an error > >number and error text (from the 'latest' MySQL > >function executed) - or zero and empty-string if the execution 'worked'. > > > >It's important to perform error-checking, but some would suggest that it > >should not be reported to "users" - under > >'normal' circumstances!? > > > >Regards, > >=dn > > > > > > > >--------------------------------------------------------------------- > >Before posting, please check: > > http://www.mysql.com/manual.php (the manual) > > http://lists.mysql.com/ (the list archive) > > > >To request this thread, e-mail <[EMAIL PROTECTED]> > >To unsubscribe, e-mail > ><[EMAIL PROTECTED]> > >Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail > <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php