Hi guys. I am now creating my sign up page and I would like to check if both name and email entered in page are already in the database.
So far I have
if(mysql_query("SELECT members FROM name WHERE $_POST['name'] = '$name' and email WHERE $_POST['email'] = '$email'" ))){
echo "Sorry! Your details are already in our database";
} else {
// code to insert values into databases.....
I have a problem with the top part. I refered $_POST as name entered as I gave it id name "name" on the form. When I run it it say programminn error.