SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    add pagination to a PHP project

    hi frds
    i am brijesh kumar. i am face a problem in your php project that how to add pagination easly in your core php project.
    Last edited by ralph.m; Oct 25, 2012 at 05:07. Reason: removed email

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    First place would be pagination in PHP then peruse some of the tutorials that turn up. Find one that suits you level of knowledge.

    Essentially, if your results are coming from a Mysql database then PHP will make full use of Mysqls' LIMIT clause e.g. " select name from users ORDER BY name LIMIT 20, 10 " which is like saying starting at row 20 of these results, get me the next 10 only.

    Also, take a look at ZF Paginator, its so easy to use once you have it set up.

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Oct 2001
    Location
    Vancouver BC Canada
    Posts
    2,030
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Haha, I love seach engines!

    A while back I read an article about paging result sets right here on SP... I didn't realize it was 10 years ago though

    Here's the artice: http://www.sitepoint.com/php-paging-result-sets/
    Andrew Wasson | www.lunadesign.org
    Principal / Internet Development


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •