Welcome Guest, Not a member yet? Register   Sign In
Creating custom 'order_by' string
#2

[eluser]Jilani Jidni[/eluser]
[quote author="MABUS" date="1219746947"]Hi,

Is there a way to ORDER BY a specified CASE or IF in CodeIgniter? Right now, I am having to write my entire query in SQL. I'm curious to find out if there is a CI way to do this.

In addition to this, I also want to know if active record class methods is able to handle additional query strings.[/quote]

Please read the active record manual and hope you will get your solution

http://ellislab.com/codeigniter/user-gui...ecord.html


Messages In This Thread
Creating custom 'order_by' string - by El Forum - 08-25-2008, 11:35 PM
Creating custom 'order_by' string - by El Forum - 08-26-2008, 12:29 AM
Creating custom 'order_by' string - by El Forum - 08-26-2008, 12:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB