uncontentio.us
Submitted by: David Walsh

Easy Pagination with PHP and Mootools 1.2

When you have an application that returns data, invariably you’ll accumulate enough to require paginating the results. Because pagination is really a form of navigation, I like to make sure it works without Javascript. But I also like to add AJAX functionality so that the entire page doesn’t reload when all you want is a new page of data. To accomplish both of those tasks, I wrote a PHP Page class. It handles the database queries, generating the page navigation and even creates the Javascript for you.

direct link