Your IP : 10.3.227.210


Current Path : /home/bolconlineco/public_html/admin/
Upload File :
Current File : /home/bolconlineco/public_html/admin/userexists.php

<?php 
 include('../includes/connection/func.inc.php');
    $username = mysql_real_escape_string($_POST['email']); // $_POST is an array (not a function)
    // mysql_real_escape_string is to prevent sql injection

    $sql = "SELECT * FROM programe_co  WHERE email=".$username.""; // Username must enclosed in two quotations

    $query = mysql_query($sql);

    if(mysql_num_rows($query) == 0)
    {
        return 0;
    }
    else
    {
        return 1;
    }
?>