Very basic News
<?php
// NEWS-----------------------------------------------------NEWS
$nn = 0;
$query="select * from `News` order by id desc;";
$qu = mysql_query($query);
while (($n_obj = mysql_fetch_object($qu)) && ($nn<10)) {
printf("<table class =\"news\">\n<tr><th>%s : <span class=\"news_tp\">%s</span></th></tr>\n", $n_obj->date, $n_obj->title);
printf("<tr><td>%s -<span class=\"auth_nm\">%s</span></td></tr>\n</table><br>",$n_obj->body, $n_obj->author);
$nn = $nn + 1;
}
mysql_free_result($qu);
?>