application/models/mobile_api/Common_model.php
/*function for make sure the  search criteria exists*/
function for make sure the  search criteria exists
function for make sure the search criteria exists
public function search_criteria_check($searchId)
    {
        $sql1 = "SELECT searchId FROM searchcriteria WHERE searchId ='".$searchId."'";
        $record = $this->db->query($sql1);
        if ($record->num_rows()>0) {
            return true;
        }   
    }
public function search_criteria_check ( $ searchId ) { $ sql1 = " SELECT searchId FROM searchcriteria WHERE searchId =' " . $ searchId . " ' " ; $ record = $ this -> db -> query ( $ sql1 ) ; if ( $ record -> num_rows ( ) > 0 ) { return true ; } }
function for make sure the  search criteria exists
function for make sure the search criteria exists