Commit 709118d9 by Phạm Văn Đoan

đổi lại thứ tự ds track, bài nào mới nhất lên trên cùng

parent b0b36dc9
...@@ -284,7 +284,7 @@ class Track_model extends CI_Model ...@@ -284,7 +284,7 @@ class Track_model extends CI_Model
} else if ($fByComposer == 2) { } else if ($fByComposer == 2) {
$this->db->where('composer_list', null); $this->db->where('composer_list', null);
} }
$this->db->order_by($this->_table . '.title', 'asc'); $this->db->order_by($this->_table . '.id', 'desc');
$this->db->limit($record, $start); $this->db->limit($record, $start);
$query = $this->db->get(); $query = $this->db->get();
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<td style="text-align: center"> <td style="text-align: center">
<img style="max-width: 50px" src="<?php echo MyHelper::getArtByTrack($data['art']) ?>"> <img style="max-width: 50px" src="<?php echo MyHelper::getArtByTrack($data['art']) ?>">
</td> </td>
<td style="text-align: center">#<?php echo $data['id']; ?></td> <td style="text-align: center"><?php echo $data['id']; ?></td>
<td style="text-align: left"> <td style="text-align: left">
<?php echo $data['title']; ?> <?php echo $data['title']; ?>
<br> <br>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment