Pagination PHP script

Here is a nice, simple way to add pagination to a site with many items using PHP. This code will allow you to display your content normally, or automatically create pagination if the content exceeds a set number of items. This code is provided as is, with no warranty, but can be modified to your liking. If you use it on your site, I’d love if you let me know so I can see it in action, but you are under no obligation to do so.

The function itself is pretty well commented, and a php example file is provided as well. Let me know how it works out for you!

Download: pagination.zip

This entry was posted in development, php and tagged , . Bookmark the permalink.

2 Responses to Pagination PHP script

  1. shawn says:

    Good idea on giving away that .php script. Do you have to hook that up to your server?

    http://www.Drewryonline.net

  2. admin says:

    Your server does need to be running PHP for these files to work.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WP Hashcash

Subscribe without commenting