$sql = "select * from news where newsID=$_GET[ID]";
$result = mysql_query($sql);
if ($myrow = mysql_fetch_array($result))
{
echo "
$myrow[news_titolo]
";
echo $myrow[news_testo];
echo "
Pubblicata il ";
echo date ("d/m/Y", strtotime ($myrow[news_data]));
echo "
";
}
?>
if ($myrow[news_link]!= "") {
echo "
Collegamenti";
}
$sqlattac = "select * from news n, join_news_allegato j, allegato a where j.join_newsID=$_GET[ID] and n.newsID=j.join_newsID and a.allegatoID=j.join_allegatoID";
$resultattac = mysql_query($sqlattac);
if ($myrowattac = mysql_fetch_array($resultattac)) {
echo "
";
}
include("banner.php");
include("legg.php");
include("footer.php"); ?>