Ignore:
Timestamp:
Nov 20, 2014 4:49:30 PM (10 years ago)
Author:
quyenla
Message:

HOME

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/models/paidlog_model.php

    r444 r586  
    5757        // get all paidlogs from the last years until now
    5858        $from = date("Y-m-d 00:00:00",$from);
    59         $sql="SELECT * FROM ".$this->table_name." WHERE paid_time > '".$from."'";
     59        $sql="SELECT * FROM ".$this->table_name." INNER JOIN tbluser ON tbluser.us_id = ".$this->table_name.".us_id WHERE ".$this->table_name.".paid_time > '".$from."'";
    6060        $result = $this->db->query($sql)->result_array();
    6161        foreach ($result as $index=>$paidlog)
Note: See TracChangeset for help on using the changeset viewer.