HokieTracks Posted May 28, 2009 Share Posted May 28, 2009 Hi, I have a loop which displays forum topics. The problem is they all appear on the same page. Is there any possible way to have the loop stop after 20 loops then link to a new page and pick up where it left off. I see it on sites like this all the time. Link to comment https://forums.phpfreaks.com/topic/159958-solved-php-loop-new-page/ Share on other sites More sharing options...
Ken2k7 Posted May 28, 2009 Share Posted May 28, 2009 Use MySQL's LIMIT. Link to comment https://forums.phpfreaks.com/topic/159958-solved-php-loop-new-page/#findComment-843686 Share on other sites More sharing options...
HokieTracks Posted May 28, 2009 Author Share Posted May 28, 2009 Ok, but how do I continue from where the loop left off on the next page. Link to comment https://forums.phpfreaks.com/topic/159958-solved-php-loop-new-page/#findComment-843696 Share on other sites More sharing options...
Ken2k7 Posted May 28, 2009 Share Posted May 28, 2009 Read pagination - http://www.phpfreaks.com/tutorial/basic-pagination Link to comment https://forums.phpfreaks.com/topic/159958-solved-php-loop-new-page/#findComment-843700 Share on other sites More sharing options...
HokieTracks Posted May 28, 2009 Author Share Posted May 28, 2009 Thanks man. Link to comment https://forums.phpfreaks.com/topic/159958-solved-php-loop-new-page/#findComment-843712 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.