
i want to get all the departments if
Код: Выделить всё
location_idКод: Выделить всё
3Код: Выделить всё
3Код: Выделить всё
cardiologyКод: Выделить всё
hairMy
Код: Выделить всё
controllerКод: Выделить всё
public function get_location_departments() { $d = $_POST['location']; $data['departments'] = $this->Hospital_model->get_location_departments($d); $this->load->view('frontend/ajax_get_departments',$data); } Код: Выделить всё
modelКод: Выделить всё
public function get_location_departments($d) { $this->db->where_in('location_id',$d); $query=$this->db->get('department')->result(); return $query; } Источник: https://stackoverflow.com/questions/504 ... as-implode
Мобильная версия