Jump to content

News System Help needed.


timecatcher

Recommended Posts

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

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.