<?php
function email_exists($email,$con)
{
$row=mysqli_query($con,"SELECT id FROM users WHERE account_number='$email'");
//print_r($row);
{
    if(mysqli_num_rows($row)==1)
    {
        return true;
    }
    else
    {
    return false;
}}
}

function logged_in()
{
if(isset($_SESSION['mail'])||isset($_COOKIE['name']))    
{
    return false;
}
    else {
        return true;
    }
}
 ?>