timecatcher Posted December 4, 2008 Share Posted December 4, 2008 Hey guys currently my news system does this to display news: $news=mysql_query("SELECT * FROM news ORDER BY ID DESC LIMIT 8") ; while($rows=mysql_fetch_array($news)){ $title=$rows['title']; $content=$rows['message']; echo'<center><table border=1 cellspacing=0 bordercolor=000000>'; echo '<tr><td width=500><center><b>'.$title.'</b></center></td></tr>'; echo '<td width=500><center>'.$content.'</center></td></table><p></center>'; } However after the last piece of news is out of date it dissappears is there any 'simple' begin friendly way to get it to move to say a page 2/3 ect automatically without having to set up a new page every 8 news items...? Thanks. Timecatcher. Link to comment https://forums.phpfreaks.com/topic/135529-news-system-help-needed/ Share on other sites More sharing options...
Mchl Posted December 4, 2008 Share Posted December 4, 2008 Seems you need pagination Link to comment https://forums.phpfreaks.com/topic/135529-news-system-help-needed/#findComment-706088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.