Мой контроллер (я хочу выбрать записи на основе некоторых условий): < /p> [code]public function promotion() { if (!$this->user_permission->check_permission()) return;
$this->db->select('a.booking_id as booking_id, a.from_email as from_email, a.booking_date as booking_date, a.status as status, b.vendor_airway_bill as awb, b.tariff as tariff'); $this->db->where('from_email', $email); $this->db->where('booking_date >=', date('Y-m-d',strtotime($data['startDate']))); $this->db->where('booking_date