application/models/mobile_api/Auth_model.php
/*function for check email exists or not */
function for check email exists or not
function for check email exists or not
public function email_exists($email)
    {   
        $sql1 = "SELECT userId FROM users WHERE email='".$email."'";
        $record1 = $this->db->query($sql1);        
        if ($record1->num_rows()>0) {
            return true;
        }else
        {
           return false;
        }
    }
public function email_exists ( $ email ) { $ sql1 = " SELECT userId FROM users WHERE email=' " . $ email . " ' " ; $ record1 = $ this -> db -> query ( $ sql1 ) ; if ( $ record1 -> num_rows ( ) > 0 ) { return true ; } else { return false ; } }
function for check email exists or not
function for check email exists or not