kidboy12 — 2012-11-14T16:18:34-05:00 — #1
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 !!
ronalds — 2012-11-14T18:27:27-05:00 — #2
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.