Need some help about pages

Discussion in 'PHP' started by beven, Dec 17, 2011.

  1. #1
    hi
    I have a large database & i am getting values from that database. I get the data from databse but the problem is that all data on one page. I want to 30 records at one page & then it create pages & add pages as records finished in database according to 30 records on page

    Thanks in advance
     
    beven, Dec 17, 2011 IP
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #2
    You are looking for Pagination, depending on the framework you are using, most have pagination already implemented.

    If you are not using a framework, try googling any of the many available "php pagination" tutorials.
     
    ThePHPMaster, Dec 17, 2011 IP
  3. rajmeetbhullar

    rajmeetbhullar Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you should use paging. Paging is a very good technique to arrange data in a symmetrical format
     
    rajmeetbhullar, Dec 21, 2011 IP