News e Offerte



La invitiamo a tornare su questa pagina in altri periodi dell'anno."; $sql="select * from ".$news." where ((tipo='eventi' or tipo='eventi' or 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=''; } } $sql="select * from ".$news." where ((tipo='eventi' or tipo='lastminute' or tipo='offerte') 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]))."Last update: ".$data."


\n"; } } echo " $testo

\n"; mysql_close($conn);?>