Welcome Guest, Not a member yet? Register   Sign In
Complex SQL -> converting to active records
#2

[eluser]jedd[/eluser]
[quote author="JamesTaylor" date="1260480656"]
I would like to add some pagination to the results so am wanting to convert the above sql into a CI active records statement.

I'm not sure but does the CI pagination only work with active records?
[/quote]

No - you can easily just put your LIMIT and offset values in to your usual (non-AR) queries.

What you may want to do is use binding or manually escape your variables in your queries, at least.


Messages In This Thread
Complex SQL -> converting to active records - by El Forum - 12-10-2009, 09:30 AM
Complex SQL -> converting to active records - by El Forum - 12-10-2009, 10:05 AM
Complex SQL -> converting to active records - by El Forum - 12-10-2009, 10:46 AM
Complex SQL -> converting to active records - by El Forum - 12-10-2009, 10:47 AM
Complex SQL -> converting to active records - by El Forum - 12-10-2009, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB