Welcome Guest, Not a member yet? Register   Sign In
CI pagination question
#1

[eluser]Unknown[/eluser]
Hi all. Please, help me solve one question about pagination.

I have controller posts. There is in Index method I have code which take result query from db like:

SELECT * FROM my_table LIMIT 0, 20

and I have method page, where I need create code, which will take result query from db like:

page/2: SELECT * FROM my_table LIMIT 20, 40

But I can't understand what I must pass to the db method: $this->db->get()

Please help me or give true link on the forums or other sites. I was googling and searching on this forum, but can't find info interesting me.

WBR!




Theme © iAndrew 2016 - Forum software by © MyBB