aaricwon Posted February 26, 2008 Share Posted February 26, 2008 I want to implement paging into my site. I have a basic news system I set up. News Title & Story. I would like to only show 5 per page. Can someone point me in the right direction? Link to comment https://forums.phpfreaks.com/topic/93125-best-easiest-way-to-learn-paging/ Share on other sites More sharing options...
blackwinter Posted February 26, 2008 Share Posted February 26, 2008 Well there is a lot of math included in these types of projects I would say if you know all your math in php and all the functions you should be set. There is more to it including to modify your SQL for the news it's self too. Link to comment https://forums.phpfreaks.com/topic/93125-best-easiest-way-to-learn-paging/#findComment-477111 Share on other sites More sharing options...
Xeoncross Posted February 26, 2008 Share Posted February 26, 2008 I built a very simple but fast pagination function that I plan on releasing soon. But in the mean time here is some pseudo code for the number of pages links to show below the content: <?php //The Number of pages based on the total number of results $numberofpagelinks = ceil($db_found_rows / $limit_to_show_per_page); ?> Link to comment https://forums.phpfreaks.com/topic/93125-best-easiest-way-to-learn-paging/#findComment-477142 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.