<div id="title">archives</div>
<center>
<table cellpadding="2" cellspacing="0" border="1px" width="511px">
<?php
$dbh = mysql_connect ("localhost", "eclecti_site", "eclectic") or die (mysql_error());
mysql_select_db ("eclecti_site");

$query = "SELECT * FROM `news` ORDER BY `DATETIME` DESC";
$mysql = mysql_query ($query, $dbh);
for ($x = 0; $x < mysql_num_rows ($mysql); $x++) {
$news = mysql_fetch_assoc ($mysql); ?>
	<tr><td colspan="2">&nbsp;</td></tr>
<?php echo	"<tr><td class=\"subject\"><a href=\"?page=oldNews&news=" . $news [ID] . "\"><b>Subject: </b> " . $news [SUBJECT] . "</a></td><td class='date'><a href=\"?page=oldNews&news=" . $news [ID] . "\"><b>Date: </b>" . $news [DATETIME] . "</a></td></tr>"; ?>
	<tr><td colspan="2" class="entry"><?php $frstSent = explode (". " , $news [ENTRY]); echo $frstSent [0] . ". <a href=\"?page=oldNews&news=" . $news [ID] . "\"><i>More...</i></a>"; ?></td></tr>
	<tr><td colspan="2"><?php echo "<a href=\"?page=oldNews&news=" . $news [ID] . "\">Read the whole entry</a></td></tr>";
} ?>
</table>
<center><br><br><br><br>