include("inc/header.php"); ?>
include("inc/header_news.php"); ?>
include ("/admin/phpdatasource.inc");
include("/admin/phpfunctions.inc");
// Serve solo per contare il numero totale di news
$sqlnum="SELECT * from news WHERE id = '$id'";
?>
$result= @mysql_query($sqlnum,$db);
if ($row=mysql_fetch_array($result))
{
$tmp = explode(" ",$row[data]);
list($anno,$mese,$giorno)= split ("-", $tmp[0], 3);
$ora = $tmp[1]; ?>
echo $row[titolo]; ?>
echo "Data: ".$giorno."/".$mese."/".$anno." - Ore: ".$ora."
";
?>
if (file_exists("/news/$row[foto]") && is_file("/news/$row[foto]")) {?>
} ?>
echo $row[testo]; ?>
$stringa = "http:\\\\$row[link]";
?>
if ($row[testo_link]) { ?>
} ?>
}
else
{
echo "Nessuna news";
}
@mysql_close();
?>
include("inc/footer_news.php"); ?>
include("inc/footer.php"); ?>