";
$q = "select * from news where ID = {$_GET['id']}";
$r = mysql_query($q, $LINK);
$a = mysql_fetch_array($r);
$giorno = substr($a['giorno'], 8, 2) . "-" . substr($a['giorno'], 5, 2) . "-" . substr($a['giorno'], 0, 4);
echo "
" . $a['titolo'] . "
";
echo "
";
echo "(" . $giorno . ") " . str_replace("\n", "
", $a['testo']);
echo "";
//
// Elenco News
echo "";
echo "
";
echo "
Elenco delle News:";
$q = "select ID, giorno, titolo from news order by ID desc";
$r = mysql_query ($q, $LINK);
while ($o = mysql_fetch_object($r)) {
$giorno = substr($o->giorno, 8, 2) . "-" . substr($o->giorno, 5, 2) . "-" . substr($o->giorno, 0, 4);
echo "
";
echo "(" . $giorno . ") " . $o->titolo . "
";
}
echo "
";
include ("inc/footer.inc.html");
?>