Код: Выделить всё
$usr = $this->session->userdata('id_user');
if($usr == 4)
{
$this->datatables->where('tbl_officer.p_code', 10);
$this->datatables->where('tbl_officer.p_code', 24);
} else {
$this->datatables->where('tbl_officer.usr', $usr);
}
Как добавить эти две строки с предложениемwhere в мой код? Кто-нибудь может помочь?
Подробнее здесь: https://stackoverflow.com/questions/596 ... conditions
Мобильная версия