...

View Full Version : [PHP] News System - Help!



epxine
11-17-2011, 01:28 PM
Hello, i need a system for this mindmap i made, its for showing news and i want them to be sorted by id and max 3 news

my mindmap:
http://epxgaming.no-ip.org/acp/upload-system/uploads/asdad.png

does anyone have experience to do such a system?

myfayt
11-17-2011, 06:20 PM
Do you just want a simple while loop with a max of 3 records?

epxine
11-17-2011, 06:28 PM
Do you just want a simple while loop with a max of 3 records?

ok simple while loop if possible

myfayt
11-18-2011, 02:58 AM
Something like this? (Customize it to your coding)


$query = mysql_query("SELECT * FROM news WHERE id>'0' ORDER BY topic_date DESC LIMIT 3");

while ($row = mysql_fetch_array($query)) {
echo "Topic Title ".$row['topic_title']."<br />
Topic Content ".$row['topic_content']."<br />
ETC";
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum