PHP Pagination Class – Version 3

It’s been a while since the popular PHP pagination class has received any of my attention, so a few months ago I set out to re-write the class to be more up to date. This version takes advantage of both code and security updates as well as updates to PHP and MySQL. I’m also planning on moving the code over to GitHub where it should be easier to manage.

Here is the new and improved PHP pagination class for your enjoyment:

Download

See the example files for how to use. I’ll create step-by-step instructions shortly.

Demo

Note that the demo uses MySQL’s free “world” database available at http://dev.mysql.com/doc/index-other.html

  • Example 1 (basic paginated database result set)
  • Example 2 (Form variables passed via pagination class)

34 thoughts on “PHP Pagination Class – Version 3”

  1. Has anyone tried styling the links? I can do the majority but am failing at “previous”, “next” and “current” link. I would also like to style the drop down, but don’t quite know how the links at put together.

Leave a Reply

Your email address will not be published. Required fields are marked *