Home arrow PHP arrow 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.

  1. Previous or Next? Paginating Records with PHP, part 4
  2. A quick look at the class source code
  3. Creating the database table
  4. Paging MySQL records: putting the "Pager" class into action
  5. Extending the use of the "Pager class": more examples to come
By: Alejandro Gervasio
Rating: starstarstarstarstar / 16
May 17, 2005

print this article




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!

>>> More PHP Articles          >>> More By Alejandro Gervasio

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: