include ('top.php');
include ('admin/config.php');
$testo="Al momento non sono previste offerte.
La invitiamo a tornare periodicamente su questa pagina,
magari in altri periodi dell'anno.";
$sql="select * from news where ((tipo='offerte' or tipo='lastminute') and lingua='it') ";
if(!($result=mysql_query($sql,$conn))) {
echo ("Error selecting data from NEWS table.\n");
}else{
while ($datarecord=mysql_fetch_row ($result)) {
if (time()>$datarecord[9]) {continue;}
if (time()<$datarecord[10]) {continue;}
$testo='';
} }
?>
$tempo=time()-186423;$data=date("d/m/Y",$tempo);echo "Gli eventi del mese
» Gli eventi del mese
Le principali manifestazioni del comune di Chianciano e dei dintorni
Aggiornato il $data
\n"; $sql="select * from news where (tipo='eventi')";if(!($result=mysql_query($sql,$conn))) { echo ("Error selecting data from NEWS table.\n"); }else{ while ($datarecord=mysql_fetch_row ($result)) { if (time()<$datarecord[8]) {continue;} if (time()>$datarecord[9]) {continue;} $data=date("d/m/Y G.i:s",$datarecord[1]); $cod=$datarecord[0]; echo "» $datarecord[2]
".stripslashes(str_replace("\n", "
", $datarecord[3]))."
Aggiornato il ".$data."
\n"; } } ?>
Le Offerte
$sql="select * from news where ((tipo='offerte' or tipo='lastminute') and lingua = 'it') order by id_news";if(!($result=mysql_query($sql,$conn))) { echo ("Error selecting data from NEWS table.\n"); }else{ while ($datarecord=mysql_fetch_row ($result)) { if (time()<$datarecord[8]) {continue;} if (time()>$datarecord[9]) {continue;} $data=date("d/m/Y G.i:s",$datarecord[1]); $cod=$datarecord[0]; echo "» $datarecord[2]
".stripslashes(str_replace("\n", "
", $datarecord[3]))."
Aggiornato il ".$data."
\n"; } } echo " $testo"; mysql_close($conn);?> include ('down.php')?>