include ('top.php');
include ('admin/config.php');
$testo="
At the moment there aren’t any special offers 'last minute'.
Visit anyway our web site, where you can find some suggestions for your vacancy. ";
$sql="select * from ".$news." where (lingua='de' and (tipo='offerte' or tipo='lastminute'))";
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='';
} }
?>
The Events $tempo=time()-186423;$data=date("d/m/Y",$tempo);echo "The events of the month The calendar of the events of the Montepulciano territory Last Update: $data \n"; $sql="select * from ".$news." where (tipo='eventi' and lingua = 'de') 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]))." Last update on: ".$data." |
\n"; }
}
?>
Angeboten $sql="select * from ".$news." where ((tipo='offerte' or tipo='lastminute') and lingua = 'de') 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]))." Last update on: ".$data." \n"; } } echo " $testo \n"; mysql_close($conn);?> |