ho apportato alcune modifiche allo script per provare a vedere se riuscivo a farlo funzionare:

Codice PHP:
<?php
$count1 
0;
$res1 mysql_query"SELECT * FROM news WHERE archivia = 0 ORDER BY id desc  ;");
$number=mysql_num_rows($res1);

if (
$number == 0)
{
print(
"Al momento non sono presenti news all'interno del sito web del Comune di Cinte Tesino.");
}
else{
print(
"<table class='tabella'>");
print(
"<thead>");
print(
"<tr>");
print(
"<th class='cella_intestazione' width='15%'>DATA</th>");
print(
"<th class='cella_intestazione' width='15%'>SCADENZA</th>");
print(
"<th class='cella_intestazione'>TITOLO</th>");

print(
"<th class='cella_intestazione' width='35%'>OPZIONI</th>");
print(
"</tr>");
print(
"</thead>");
print(
"<tbody>");
while ( 
$riga1 mysql_fetch_array$res1 ) ) {
$giorno = (date("d"));
$mese =(date("m"));
$anno = (date("Y"));
if(
"$giorno"."$mese"."$anno==$riga1["scadenza"])
{
require_once(
'auto_archivia_news.php');
}
else {
    
$dateform explode'-'$riga1["data"] );
    
$datafin $dateform[2].'.'.$dateform[1].'.'.$dateform[0];
    
$dateform2 explode'-'$riga1["scadenza"] );
    
$datafin2 $dateform2[2].'.'.$dateform2[1].'.'.$dateform2[0];
print(
"<tr>");
print(
"<td class='cella_corpo_2'>".$datafin."</td>");
print(
"<td class='cella_corpo_2'>".$datafin2."</td>");
print(
"<td class='cella_corpo'>".$riga1["titolo"]."</td>");
print(
"<td class='cella_corpo_2'>
<input type=\"button\" id=\"m"
.$riga1["id"]."\" name=\"m".$riga1["id"]."\" value=\"Modifica\" title=\"Modifica\" onclick=\"javascript:document.location.href='./modifica_news.php?id=".$riga1["id"]."';\" />
<input type=\"button\" id=\"c"
.$riga1["id"]."\" name=\"c".$riga1["id"]."\" value=\"Archivia\" title=\"Archivia\" onclick=\"javascript:arc('".$riga1["id"]."');\" />
<input type=\"button\" id=\"c"
.$riga1["id"]."\" name=\"c".$riga1["id"]."\" value=\"Cancella\" title=\"Cancella\" onclick=\"javascript:canc('".$riga1["id"]."');\" />\n</td>");
print(
"</tr>");     
    }}
print(
"</tbody>");
print(
"</table>");

}

?>
ora, non so come scrivere il file auto_archivia_news.php. Qualcuno mi può dare una traccia?