Checking if mysqli_query returned any values?
use mysqli_num_rows
like this
if (mysqli_num_rows($result) == 0) {
echo "email was not found";
} else {
echo "email was found";
}
Use mysqli_num_rows to check if any rows were returned or not.