Google
Edit File: checkEmail.php
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of checkEmail * * @author admin@3embed */ require_once 'ConDB.php'; class checkEmail { public $available; public function __construct($userEmail,$uid) { $db = new ConDB(); $get_user_qry = "select * from t_user where Email ='" . $userEmail . "' and id !='".$uid."'"; $user_res = mysql_query($get_user_qry, $db->conn); if(mysql_num_rows($user_res) > 0){ $this->available = false; }else{ $this->available = true; } $db->close($db); } } ?>