это код:
Код: Выделить всё
$this->db->where_in('id','1,2,3');
Код: Выделить всё
$this->db->where('id',1);
$this->db->where('id',2);
$this->db->where('id',3);
Код: Выделить всё
$this->db->where('id',1);
$this->db->or_where('id',2);
$this->db->or_where('id',3);
Подробнее здесь: https://stackoverflow.com/questions/380 ... sult-by-or
Мобильная версия