sql_query($news_sql))) {
echo "
No news posted yet
";
echo mysql_error();
} else {
while ($news_row = $db->sql_fetchrow($result)) {
$topic_link = $phpbb_root_url.'viewtopic.php?t='.$news_row['topic_id'];
// post heading
echo "";
// post information
$post_date = create_date($board_config['default_dateformat'], $news_row['topic_time'], $board_config['board_timezone']);
echo "Posted by ".$news_row['username']." on ".$post_date."
";
// post text
echo "".$news_row['post_text']."
";
// reply information with link
switch ($news_row['topic_replies']) {
case 0:
$reply_text = "No replies";
break;
case 1:
$reply_text = "One reply";
break;
default:
$reply_text = $news_row['topic_replies']." replies";
}
echo "".$reply_text."";
}
}
?>