I have a database that I want to pull only certain rows that have dates in specified ranges. I\'m not sure how to do this properly in active record. Right now it looks like
You can specify you $where and use active records
$where
$where = "DATE(order_datetime) BETWEEN '2012-10-01' AND '2012-10-3'"; $this->db->where($where)->get('table_name');