rendered paste body<?php
$dblink = mysql_connect($config['db_host'], $config['db_user'], $config['db_pswd'])
or die('Couldn\'t connect to db: ' . mysql_error());
mysql_select_db($config['db_name'])
or die('Couldn\'t select db: ' . mysql_error());
$query = 'SELECT * FROM news ORDER BY id DESC';
$result = mysql_query($query);
while ($item = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo '<a href="index.php?page=shownews&id=' . $item['id'] . '">';
echo '<h3>' . $item['title'] . '</h2></a>';
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 />';
}
?>