kumarrana Posted January 3, 2008 Share Posted January 3, 2008 I am trying to write a blog in PHP with the support of MySQL. I have basic concepts and started writing. But I am concern about making multiple page (like 1, 2, 3) once one page is filled. I have never done that and don't have any idea. Can anybody give me an idea. Link to comment https://forums.phpfreaks.com/topic/84220-solved-blog-on-multiple-page-using-php/ Share on other sites More sharing options...
teng84 Posted January 3, 2008 Share Posted January 3, 2008 i think what you mean is not multiple page but rather dynamic content of the page? can you explain it well...? Link to comment https://forums.phpfreaks.com/topic/84220-solved-blog-on-multiple-page-using-php/#findComment-428878 Share on other sites More sharing options...
kumarrana Posted January 3, 2008 Author Share Posted January 3, 2008 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. Link to comment https://forums.phpfreaks.com/topic/84220-solved-blog-on-multiple-page-using-php/#findComment-428884 Share on other sites More sharing options...
teng84 Posted January 3, 2008 Share Posted January 3, 2008 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 Link to comment https://forums.phpfreaks.com/topic/84220-solved-blog-on-multiple-page-using-php/#findComment-428893 Share on other sites More sharing options...
kumarrana Posted January 3, 2008 Author Share Posted January 3, 2008 Got it. Thanks a lot Link to comment https://forums.phpfreaks.com/topic/84220-solved-blog-on-multiple-page-using-php/#findComment-428925 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.