SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    display items and pagination

    hello guys!
    i'm new member and this is my first post ,
    i want to make a simple php website looks like this one :http://www.pdfmagazines.org/books/
    which displays ebooks and ability to download them .
    i need some advices and ideas how to make that display and pagination plz !!
    if its possible show me some samples !!
    thanks

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2011
    Location
    Kolding, Denmark
    Posts
    108
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    The idea behind pagination is simple math. Define how many items you want per page, total item count divided by items per page gives you number of pages. To get items to display for particular page multiply page number by items per page, minus items per page. And then MySQL LIMIT can be used, to retrieve records to be displayed, of course, if you are using MySQL.


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
  •