Check that values aren't the same
View Single Post
06-24-2009, 09:38 PM
La Vida es Sueño
Join Date: Sep 2007
You'll need to configure the indexes on your table. So the username and email address fields would become unique indexes. When you then attempt to
into the table, an error will be thrown. This can be retrieved using the MySQL error number, and then handed accordingly.
It saves on a
statement to check if it is unique or not.
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
View Public Profile
Send a private message to Wildhoney
Visit Wildhoney's homepage!
Find More Posts by Wildhoney