I want to be able to echo out a custom error message, something like "sorry you must choose another username"
I have this:
mysql_query($sql) or die(mysql_error());
But how do I insert the custom error message?
Just replace the mysql_error() with:
"Sorry, you must choose another username"
Your code would end up looking like:
mysql_query($sql) or die("Sorry, you must choose another username");
~Brett
Perfect! Thanks very much..
No problem.
Don't forget to mark the thread as resolved (link at the bottom).