В модели
function get_search_fuel_prices($fuel_city){ $this->db->select('*'); $this->db->from('fuel_price'); $this->db->like('fuel_city',$fuel_city); return $this->db->get()->result(); }
//split the location by comma $arr = explode(",",$fuel_city); //then $this->db->like('fuel_city',$arr[0]);