Welcome Guest, Not a member yet? Register   Sign In
Pagination Algorithms
#1

[eluser]kurucu[/eluser]
I have written a simple forum in codeigniter and successfully implemented pagination.

The query just shows the next x replies after offset y (sticking to MySQL Limit command, as it allows different users to specify their own page sizes.

My problem is finding out which page a post would lie on, for example for linking quotes or redirection after editing.

Does anyone know what sort of query or algorithm could be used to directly find the page for a post, or at least find the relative position of a post in a sequential list (i.e. from the MySQL query).


Messages In This Thread
Pagination Algorithms - by El Forum - 09-01-2009, 06:24 AM
Pagination Algorithms - by El Forum - 09-01-2009, 06:50 AM
Pagination Algorithms - by El Forum - 09-01-2009, 06:56 AM
Pagination Algorithms - by El Forum - 09-01-2009, 07:25 AM
Pagination Algorithms - by El Forum - 09-01-2009, 08:30 AM
Pagination Algorithms - by El Forum - 09-01-2009, 09:45 AM
Pagination Algorithms - by El Forum - 09-02-2009, 02:23 AM
Pagination Algorithms - by El Forum - 09-02-2009, 03:58 AM
Pagination Algorithms - by El Forum - 09-02-2009, 09:28 AM
Pagination Algorithms - by El Forum - 09-02-2009, 02:30 PM
Pagination Algorithms - by El Forum - 09-03-2009, 03:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB