Check if row exists with mysql

122 times"4 months ago"
     

I need help checking if a row exists. I am getting "email no longer exists publisher@example.com".


Is there a better way to check if row exists with mysqli?


if (count($_POST)) {   $email = $dbl->real_escape_string(trim(strip_tags($_POST['email'])));   $passwd = $dbl->real_escape_string(trim(strip_tags($_POST['passwd'])));
$query = "SELECT `email` FROM `tblUser` WHERE `email` = '$email'";   $result = mysqli_query($dbl