Check Database For Email Address (no Duplicates)

Hi,

I have a sign up form that checks the database for username to see if it is taken. If it is there is a display from my english.php file saying that the username is already taken.

I’d like a similar function from above on the same form to check for an email address to see if it is already in the database. If the email address exists I need to display “email address already in use.” from my english.php file.

My problem is that if there is duplicate email addresses in the database it creates a bug in the script.

http://www.edmontonmusic.ca/musicians/join.php

Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *