rendered paste body<?php
$pagename = "News";
$sql = $dbfunction->sqlconnect();
$query = 'SELECT * FROM news ORDER BY id DESC';
$result = mysql_query($query);
while ($item = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo '<h3><a href="index.php?page=shownews&id=' . $item['id'] . '">';
echo $item['title'] . '</a></h3>';
echo $item['text'];
echo '<br />';
// if (configure_option_for_this == on)
// echo '<br /><a href="index.php?page=news&id=' . $item['id'] . '">Read More --></a>';
echo '<br /><hr style="width: 100%; height: 2px;" />';
echo '<i>Posted by ' . $item['poster'] . ' on ' . $item['date'] . '</i><br />';
}
echo '<br /><a href=index.php?page=newsarchive>News Archive</a>';
?>
<br />
<?php
mysql_close($sql);
$generalfunct->showfooter(); ?>