HomePHP Previous or Next? Paginating Records with PHP - Part 2
Previous or Next? Paginating Records with PHP - Part 2
In the first article in this series, we learned how to do simple pagination of records taken from a text file. In this article, we will look at pagination for a larger group of records, using an Objected Oriented rather than a procedural approach to creating the application.
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.
However, for those catching up right now, don't be disappointed! Before we go more deeply into any attempt to define a PHP class, we'll review the concepts previously explained, looking briefly at the function originally created to paginate records, which used a procedural orientation.
Having examined the preliminaries, it's time to go more deeply into the area of record paging in PHP. Are you ready to move on? Fine, because it's going to be really fun. Let's get started.