[nycphp-talk] Problem with Pagination
Adam Maccabee Trachtenberg
adam at trachtenberg.com
Thu Jun 3 13:58:32 EDT 2004
On Thu, 3 Jun 2004, Phillip Powell wrote:
> I wrote a class method that will handle pagination regarding
> medium-sized resultsets (estimating maximum number of rows at 500).
> Everything works beautifully, except one annoying problem that involves
> someone with a math degree or really really good with numbers:
>
> The "next link" displays the wrong number of "next" items every time! I
> can't honestly, for the life of me, figure out the algorithm to get it
> right. The pagination functionality works perfectly, except that one part.
My advice is that you should buy "PHP Cookbook" and steal the recipe
from there. :)
Or, just look at the source for the PEAR pager classes.
-adam
--
adam at trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!
More information about the talk
mailing list