PHP script enters form data into MySql db for registration of new users. Script checks email address formatting, checks for blank or duplicate usernames/email addresses. If dupes or blanks -- error try again.
User can't register without email address but some prospective users will have no email address. So, there's an "admin" email address they can use instead -- then they're registered but not activated. Admin is notified by email and activates account.
Problem: To check for dupe email addresses, script counts matches where email = '$email'-- this prevents dual registering but disables the use of the admin email address. The code for checking for dupes is:
$EmailQuery = mysql_query("SELECT * FROM signup WHERE email='$email'");
$email = strtolower($email);
$EmailExist = mysql_num_rows($EmailQuery);
Question: Is there a way to change the select statement so that the admin email address will not be counted as existing? Will appreciate very much any help at all.
Thanks, Naporan