HomePHP Previous or Next? Paginating Records with PHP, part 4
Previous or Next? Paginating Records with PHP, part 4
In the fourth and final article in our series about paginating records with PHP, we will look at the source code for the "pager" PHP class we developed in part three, and show several examples to demonstrate possible uses in production environments.
Welcome to the final part of the series "Previous or Next? Paginating Records with PHP." Over the previous articles, we addressed a common issue involved with Web applications: record paging. From the very beginning, we provided a friendly introduction to solving paging problems, branching out to different approaches. Starting with a basic procedural solution, then moving on to an object-oriented implementation, hopefully we offered in-depth coverage for the subject.
In the third part of the series, our best efforts were put into developing a "Pager" PHP class. Aimed specifically at paginating MySQL records, it offers a great degree of flexibility for controlling the look of generated output.
Finally, in this last article, we'll take a quick look at the class' source code, and head in a practical direction, developing several step-by-step examples to demonstrate possible uses in production environments.
With the preliminaries out of the way, let's put our hands on the code and start paging records!