How to order data from newest to oldest |
[eluser]mi6crazyheart[/eluser]
If u r using CI active records to make u'r sql query just use "$this->db->order_by()" in u'r model function. ha ha, most probably that might be "DESC" Example: Code: $this->db->order_by("dateField", "desc"); Ref: http://ellislab.com/codeigniter/user-gui...ecord.html |
Messages In This Thread |
How to order data from newest to oldest - by El Forum - 01-13-2011, 10:02 AM
How to order data from newest to oldest - by El Forum - 01-13-2011, 10:08 AM
How to order data from newest to oldest - by El Forum - 01-13-2011, 10:11 AM
How to order data from newest to oldest - by El Forum - 01-13-2011, 10:20 AM
How to order data from newest to oldest - by El Forum - 01-13-2011, 10:49 AM
How to order data from newest to oldest - by El Forum - 01-13-2011, 10:53 AM
How to order data from newest to oldest - by El Forum - 01-13-2011, 10:58 AM
|