Jump to content

[SOLVED] Blog on multiple page using PHP


kumarrana

Recommended Posts

OK, After several posting page will be filled. If I keep every posting and comments on same page it will be rally long and potentially take long time to load up. So I basically mean keeping all old thing on second, third and so on pages so user can only see latest posting. Sample is like http://math.uaa.alaska.edu/~csclub/.

On the bottom you can see pages 1, 2, 3, next. Hope this help.

sorry ....

 

well this sql paging try searching that in this forum and you'll finds tons of it.. the concept of paging is this..

 

you will determine the total records of your DB

divide that into particular limit eg if you want to display tem records you will didvide it by ten

 

loop the result to have the numbers of paging

 

query your DB bearing the start and end as the limit of your query

 

eg.. select * from teng limit 5,10  <-- display records from 5 -1 0

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.