Welcome Guest, Not a member yet? Register   Sign In
Odering results in descending

[eluser]Alias M2K[/eluser]
Guys, I was wondering if there is any way to order the results from MySQL tables in descending order? I mean any active query other than the classic MySQL query?

Thanks Smile

[eluser]Eric Barnes[/eluser]
Sure you can:
$this->db->from('table')->order_by('id', 'desc');

use $this->db->order_by('field', 'sort');
You can read the user guide

[eluser]Alias M2K[/eluser]
Thanks dude Smile

Just made few modifications on it, and I am done! Thanks! Big Grin

Theme © iAndrew 2016 - Forum software by © MyBB