- Timestamp:
- Nov 20, 2014 4:49:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/models/paidlog_model.php
r444 r586 57 57 // get all paidlogs from the last years until now 58 58 $from = date("Y-m-d 00:00:00",$from); 59 $sql="SELECT * FROM ".$this->table_name." WHEREpaid_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."'"; 60 60 $result = $this->db->query($sql)->result_array(); 61 61 foreach ($result as $index=>$paidlog)
Note: See TracChangeset
for help on using the changeset viewer.