Neat little thing to customize the error messages. I know this is easy to all you pros, but this may not be so easy for a newcomer.
PHP Code:
$SQLErr = "Duplicate entry 'NAME' for key 'PRIMARY'"; if (mysql_error()==$SQLErr) { echo "<p>Sorry, but that username is taken. Please choose a different one.</p>"; }
Just change $SQLErr to be what your error message is, and change the echo inside the if to be your custom error message!
|