Как мы можем использовать условие, если данные хранятся как implodePhp

Кемеровские программисты php общаются здесь
Гость
Как мы можем использовать условие, если данные хранятся как implode

Сообщение Гость »



Изображение


i want to get all the departments if

Код: Выделить всё

location_id
is . that means if location id is used i need to get the department_names of

Код: Выделить всё

cardiology
and
My

Код: Выделить всё

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); } 
My

Код: Выделить всё

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

Вернуться в «Php»