PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of ted kappes   Paginator   index.php   Download  
File: index.php
Role: Documentation
Content type: text/plain
Description: Index page for docs
Class: Paginator
Spliting database query result sets between pages.
Author: By
Last change:
Date: 20 years ago
Size: 2,348 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title>Paginator and Paginator_html</title> <style type="text/css"> <!-- body { margin-top: 20px; margin-left: 50px; margin-right: 50px; background-color: #FFFF99; font-family: Verdana; } h1 { font-size: 150%; } h2 { font-size: 125%; } --> </style> </head> <body> <h1>Paginator and Paginator_html</h1> <p><strong>Paginator</strong> Is a php class that will help you 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.</p> <p>The Paginator methods return values that you can use to create your navigation links.<br /> The values it presently returns are<br /> <ul> <li>First of in a series</li> <li>Second of in a series</li> <li>Total items in a series</li> <li>Total Pages</li> <li>First page</li> <li>Last page</li> <li>Previous page</li> <li>Next page</li> <li>Current page</li> <li>A set of numbered links</li> <li>The name of the current page.</li> </ul>Get more information on <a href="paginator_doc.php#pmethods">Paginator methods here</a></p> <p><strong>Paginator_html</strong> Is an extension to the Paginator class. It includes methods that supply a pre-made link set.</p> <h2>More Paginator information</h2> <p>Below are links to Paginator documentation and examples</p> <p><strong>Paginator and Paginator_html Documentation</strong> <ul> <li><a href="paginator_doc.php">Paginator and Paginator_html Documentation</a></li> </ul></p> <p><strong>mySQL Instructions</strong> <ul> <li><a href="mysql.php">mySQL Instructions</a></li> </ul></p> <p><strong>Examples for Paginator_html</strong> Look at the php source code to see how to set these up.</p> <ul> <li><a href="example1.php">Example 1</a></li> <li><a href="example2.php">Example 2</a></li> </ul> </p> <p><strong>Examples for Paginator</strong> Look at the php source code to see how to set these up.</p> <ul> <li><a href="example3.php">Example 3</a></li> <li><a href="example4.php">Example 4</a></li> </ul> </p> </body> </html>