Fairoj : PD List Limit set to Last 10 days
This commit is contained in:
parent
856e0aaefa
commit
a72f941b89
@ -121,6 +121,12 @@ class PD_Model extends SPARQ_Model {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// FILTERING THE LAST 10 DAYS RECORDS
|
||||
$filter_rec='PDTRIGGER.pd_date_of_initiation BETWEEN DATE_SUB(NOW(), INTERVAL 10 DAY) AND NOW()';
|
||||
$this->db->WHERE($filter_rec);
|
||||
// ----END OF FILTERING THE LAST 10 DAYS RECORDS---
|
||||
|
||||
$this->db->ORDER_BY('PDTRIGGER.pd_id',$sort);
|
||||
$this->db->LIMIT($limit,$page);
|
||||
$result_array = $this->db->GET()->result_array();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user