1$minvalue = '2020-01-01 00:00:00';
2$max_value = '2050-12-31 23:59:59';
3$this->db->where("date_field BETWEEN '$minvalue' AND '$maxvalue'");
1$this->db->select('ae_users.employee_id, ae_users.emp_name, ae_users.emp_name2, ae_users.emp_name3');
2 $this->db->from('ae_users');
3 $this->db->where_in('ae_users.employee_id',$employee_ids);
4
5 $query =$this->db->get();
6
7 if ($query->num_rows()) {
8 return $query->result_array();
9 } else {
10 return 0;
11 }
1return $this->db->select(array('employee_id', 'emp_name', 'emp_name2', 'emp_name3'))->get_where('ae_users',array(employee_id'=>$employee_ids))->result_array();