Active Class DB problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Active Class DB problem (/showthread.php?tid=29619) |
Active Class DB problem - El Forum - 04-15-2010 [eluser]Ngulo[/eluser] hi all ,i'm trying to order_by() my data from db i would like to order them by 2 parametres and i can't do it without your suggestions i need something like this: Code: $this->db->order_by('data ASC , hour DESC')->get('table'); now i'm trying very stupid method ,and they aren't still working , how can i write this code to make it works? thanks a lot anticipated Active Class DB problem - El Forum - 04-15-2010 [eluser]WanWizard[/eluser] Something like: Code: $this->db->order_by('data', 'ASC')->order_by('hour', 'DESC')->get('table'); Active Class DB problem - El Forum - 04-15-2010 [eluser]Ngulo[/eluser] yeah man thanks for the great explain |