Flexible pagination class

Flexible pagination class
Split MySQL query results in multiple pages
Databases, HTML, PHP 5
mano kalousdian
This class can be used to split MySQL query results in multiple pages.

It takes a given SQL query and executes it in such way that it limits the retrieved results to a given range of rows with data to be displayed in the current page.

The class also generates HTML for links to go to the next, previous, first and last page of the query results listing. It can also generate a select input with Javascript to jump to the listing pages.

The limit number of rows to display per page is configurable.

Tags: ,

This entry was posted on Monday, June 28th, 2010 at 11:53 pm
Entry is filed under Classes.
Read original posting here.
You can follow any responses to this entry through the RSS 2.0 feed.

Both comments and pings are currently closed. Total Views: 343

Comments are closed.