- Timestamp:
- Nov 20, 2014 11:00:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/models/smslog_model.php
r426 r579 26 26 $order = "ORDER BY " . $data['sorting_field'] . " " . $sort; 27 27 } 28 return $this->db->query($sql." ".$order." LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array(); 28 29 $query = $this->db->query($sql." ".$order." LIMIT ".$data['start'].", ".$data['perpage']." "); 30 31 return $query->result_array(); 29 32 } 30 33 … … 37 40 $sql.=" WHERE (sender LIKE '%".$data['keyword']."%' OR mobody LIKE '%".$data['keyword']."%' OR mtbody LIKE '%".$data['keyword']."%') "; 38 41 } 39 return $this->db->query($sql)->row_array()['total']; 42 43 $query = $this->db->query($sql); 44 $row = $query->row_array(); 45 return $row['total']; 40 46 } 41 47 }
Note: See TracChangeset
for help on using the changeset viewer.