fix
This commit is contained in:
@@ -21,4 +21,16 @@ class Report_model extends CI_Model {
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getRedeemCouponsList($limit){
|
||||
$data = array();
|
||||
$mysql = "SELECT id,code,amount,active::date ,added::date
|
||||
FROM coupons_allocation
|
||||
WHERE member_id =" . $_SESSION['member_id'] . " AND
|
||||
active IS NOT NULL ORDER BY active DESC LIMIT ". $limit;
|
||||
|
||||
$query = $this->db->query($mysql);
|
||||
$data['card_coupon_data_result'] = $query->result();
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user