data not filtering in ajax codeigniter
问题 I want to filter data by dropdown but it giving me all data.... this is my model with ajax function public function ajax() { $query = "SELECT * from info_user Where user_status ='1'"; if(!empty($size)){ $query .= " and city in('".$size."')"; } if(!empty($sprice) && !empty($eprice)){ $query .= " and charge_per_hour >='".$sprice."' and charge_per_hour <='".$eprice."'"; } $result = $this->db->query($query); return $result->result(); } And this is my controller public function ajax() { $size =