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

[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
#2

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

[eluser]kotakorange[/eluser]
use $this->db->order_by('field', 'sort');
You can read the user guide
#4

[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