Код: Выделить всё
$cl_phone = array(1,2,3);
Код: Выделить всё
public function get_clients_enabled_array($cl_phones)
{
$this->db->order_by('filial_id');
$this->db->order_by('client_name');
$this->db->where('status', '1');
foreach ($cl_phones as $value) {
$this->db->where('client_id', $value);
}
$query = $this->db->get('clients');
return $query->result_array();
}
Как правильно?
Подробнее здесь: https://stackoverflow.com/questions/231 ... found-in-a
Мобильная версия