Код: Выделить всё
$this->db->where("sa.country", $country);
// I NEED TO OPEN BRACKETS HERE SO THAT I CAN GET THE
// LANGUAGES IF THERE IS DATA IN ONE OF THE ARRAYS
if (isset($lid[0]))
$this->db->where("sa.lang", $lid[0]);
if (isset($lid[1]))
$this->db->or_where("sa.lang", $lid[1]);
if (isset($lid[2]))
$this->db->or_where("sa.lang", $lid[2]);
if (isset($lid[3]))
$this->db->or_where("sa.lang", $lid[3]);
if (isset($lid[4]))
$this->db->or_where("sa.lang", $lid[4]);
//AND CLOSE THEM HERE
Подробнее здесь: https://stackoverflow.com/questions/128 ... deigniters
Мобильная версия