Database Code

  Home arrow Database Code arrow Paginator
DATABASE CODE

Paginator
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2003-07-25

    Table of Contents:

     
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement
    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.

    Click to Download File



    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.

    More Database Code Articles
    More By Codewalkers

    blog comments powered by Disqus

    DATABASE CODE ARTICLES

    - Converting CSV Files to MySQL Insert Queries...
    - Examples and Tools for Database Design
    - Relationships, Entities and Database Design
    - Modeling and Designing Databases
    - Data extract to Excel
    - Oracle database class 0.76
    - The opposite of mysql_fetch_assoc
    - On line Thermal Transmitance Calculation
    - pjjTextBase
    - PHP Object Generator
    - FastMySQL
    - RC4PHP
    - SQL function with integrated sprintf()
    - DB Interaction Classes v1.1
    - deeMySQLParser


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap