In a new post today, DevShed has the second part of their "Pagination with PHP" series available for all. In this continuation from Part 1, they get finish up the procedural approach that they started previously and launch into a more OOP solution.
Welcome to Part II of the article "Previous or Next? Paginating Records with PHP." I really hope that you enjoyed reading the first article as much as I did writing it. For those faithful readers who spent some time reading over the first part, I have good news. In this second part, we're going to head toward the OOP approach, defining a class for paginating records. In this way we will discover a better solution, useful for applying to larger Web projects.
With a "pager class" powering the system, there seems to a bit more flexibility and simplicity to the whole situation, but, for someone not familiar with it, jumping into OOP just for pagination may not be the best.




