I'm trying to check if an email address exist in the database after typing the email on the form
here is my code
$emailbox = $_POST['loginemailbox'];
$check_email =mysqli_query(" SELECT * FROM Registration WHERE Email = '$emailbox'");
if(mysqli_num_rows($check_email) == 1)
{
echo $emailbox." is found in the database :)";
} else
{
echo $emailbox."is not found in database :(";
}
what am i doing wrong here , can anyone point out to me the error