include('top.php');
include ('admin/config.php');
$testo="At the moment there are no offers.
We invite you to go back on this page periodically.
";
$sql="select * from ".$news." where ((tipo='offerte' or tipo='lastminute') and lingua='uk') ";
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='';
} }
?>
$sql="select * from ".$news." where ((tipo='offerte' or tipo='lastminute') and lingua = 'uk') 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 "» ".stripslashes($datarecord[2])."
".stripslashes(str_replace("\n", "
", $datarecord[3]))."
Last update on".$data."
\n"; }
}
echo "
$testo
\n";
mysql_close($conn); ?>
include ('down.php')?>