This commit is contained in:
2022-06-04 22:20:25 -04:00
parent c6bd157dcf
commit 8c2c0e56a1
3 changed files with 76 additions and 80 deletions
+12
View File
@@ -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;
}
}