application/models/mobile_api/Auth_model.php
/*function for make sure the  student id exists*/
function for make sure the  student id exists
function for make sure the student id exists
public function user_check($userId)
    {
        $sql1 = "SELECT userId FROM users WHERE userId ='".$userId."'";
        $record = $this->db->query($sql1);
        if ($record->num_rows()>0) {
            return true;
        }   
    }
public function user_check ( $ userId ) { $ sql1 = " SELECT userId FROM users WHERE userId =' " . $ userId . " ' " ; $ record = $ this -> db -> query ( $ sql1 ) ; if ( $ record -> num_rows ( ) > 0 ) { return true ; } }
function for make sure the  student id exists
function for make sure the student id exists