application/models/mobile_api/Common_model.php
/* Check the email for user is exist */
Check the email for user is exist
Check the email for user is exist
public function update_email_check($email,$userId)
    {
        $sql1 = "SELECT userId FROM users WHERE userId = $userId AND email='".$email."'";
        $record1 = $this->db->query($sql1);
        if ($record1->num_rows()==1) {
            return false;
        } else {
            return true;
        }
    }
public function update_email_check ( $ email , $ userId ) { $ sql1 = " SELECT userId FROM users WHERE userId =  $ userId  AND email=' " . $ email . " ' " ; $ record1 = $ this -> db -> query ( $ sql1 ) ; if ( $ record1 -> num_rows ( ) == 1 ) { return false ; } else { return true ; } }
Check the email for user is exist
Check the email for user is exist