Bob Sanderson wrote:
Is there a way, using PHP, to detect and display an error from a MySQL
server? Can I, by using error numbers or some similar method, create
my own error messages?
Sure, you can suppress the error message by preprending an at sign "@" to
the mysql_* function call and get the error code from the string returned by
the mysql_error() function.
Afterwhich, you can use the list of error codes from the MySQL website to
map the error code to whatever you like.
JW