fix
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class Report_model extends CI_Model {
|
||||
|
||||
function __construct() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function getCardPurchase($limit){
|
||||
$data = array();
|
||||
$mysql = "SELECT added::date,"
|
||||
." (CASE WHEN code ='MNCCD' THEN 'New Card Payment' "
|
||||
. "WHEN code ='MRCCD' THEN 'Repeat Card Payment' "
|
||||
. "ELSE '' END) AS Description,amount*0.01 AS amount,fee*0.01 as fee,confirmation "
|
||||
. "FROM members_payments "
|
||||
. "WHERE member_id = " . $_SESSION['member_id'] . " AND status = 1 ORDER BY id DESC LIMIT ". $limit; // OFFSET " . $page;
|
||||
|
||||
$query = $this->db->query($mysql);
|
||||
$data['card_payment_data_result'] = $query->result();
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user