Код: Выделить всё
public function check_header($id){
$where_params = [
'a.id' => $id,
'fee_status' => 'applied'
];
return $this->db->table('header a')
->select('*, IF(NOW() BETWEEN a.fee_date_active AND a.fee_date_exp, "applied", "exp") AS fee_status')
->where($where_params)
->orderBy('a.id', 'DESC')
->get()->getResult();
}
Как это исправить? Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/786 ... eigniter-4
Мобильная версия