Class to break record sets into pages. To see a demo go to http://www.tkap.org
By : pesoto74
Paginator is A php class to split your record sets into pages. I wrote this class to save myself some time and then thought others might find it helpful. Paginator will return a number that you can use to set your base record and a number to use as an offset. For now I know it works in mySQL queries and with arrays.
The Paginator methods return values that you can use to create your navigation links. The values it presently returns are
* First of in a series * Second of in a series * Total items in a series * Total Pages * First page * Last page * Previous page * Next page * Current page * A set of numbered links * The name of the current page. Paginator_html Is an extension to the Paginator class. It includes methods that supply a pre-made link set.
More documentation and for working examples are in the download.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.