I have a mysql table to hold my members. I want to prevent people from writing to the database using the same email address. so im thinking my php code would be something along this...
Is this ok?PHP Code:$emailcheck = "select email from users where email = ".$email."";
if (mysql_num_rows != 1) {
echo "error";
} else {
//insert statement
}



Reply With Quote





Bookmarks