include ("portovenere.inc"); $PVE=mysql_connect ("$PVEOST","$PVESER","$PVEASS"); /* $SQL="select * from $HOTEL where flagbannerho100='S' limit 1"; $PrimoHotel100=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner100=$PrimoHotel100[filebanner]; if ($PrimoBanner100=="") { $SQL="select * from $RISTORANTI where flagbannerho100='S' limit 1"; $PrimoHotel100=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner100=$PrimoHotel100[filebanner]; } if ($PrimoBanner100=="") { $SQL="select * from $SHOPPING where flagbannerho100='S' limit 1"; $PrimoHotel100=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner100=$PrimoHotel100[filebanner]; } if ($PrimoBanner100=="") { $SQL="select * from $NAUTICA where flagbannerho100='S' limit 1"; $PrimoHotel100=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner100=$PrimoHotel100[filebanner]; } */ if ($PrimoBanner100=="") { $SQL="select * from $BANNER where flagbannerho100='S' limit 1"; $PrimoHotel100=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner100=$PrimoHotel100[filebanner]; } $VISBANNER100="S"; if ($PrimoBanner100=="") { $VISBANNER100="N"; } /* $SQL="select * from $HOTEL where flagbannerho200='S' limit 1"; $PrimoHotel200=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner200=$PrimoHotel200[filebanner200]; if ($PrimoBanner200=="") { $SQL="select * from $RISTORANTI where flagbannerho200='S' limit 1"; $PrimoHotel200=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner200=$PrimoHotel200[filebanner200]; } if ($PrimoBanner200=="") { $SQL="select * from $SHOPPING where flagbannerho200='S' limit 1"; $PrimoHotel200=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner200=$PrimoHotel200[filebanner200]; } if ($PrimoBanner200=="") { $SQL="select * from $NAUTICA where flagbannerho200='S' limit 1"; $PrimoHotel200=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner200=$PrimoHotel200[filebanner200]; } */ if ($PrimoBanner200=="") { $SQL="select * from $BANNER where flagbannerho200='S' limit 1"; $PrimoHotel200=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner200=$PrimoHotel200[filebanner200]; } $VISBANNER200="S"; if ($PrimoBanner200=="") { $VISBANNER200="N"; } /* $SQL="select * from $HOTEL where flagbannerho341='S' limit 1"; $PrimoHotel341=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner341=$PrimoHotel341[filebanner341]; if ($PrimoBanner341=="") { $SQL="select * from $RISTORANTI where flagbannerho341='S' limit 1"; $PrimoHotel341=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner341=$PrimoHotel341[filebanner341]; } if ($PrimoBanner341=="") { $SQL="select * from $SHOPPING where flagbannerho341='S' limit 1"; $PrimoHotel341=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner341=$PrimoHotel341[filebanner341]; } if ($PrimoBanner341=="") { $SQL="select * from $NAUTICA where flagbannerho341='S' limit 1"; $PrimoHotel341=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner341=$PrimoHotel341[filebanner341]; } */ if ($PrimoBanner341=="") { $SQL="select * from $BANNER where flagbannerho341='S' limit 1"; $PrimoHotel341=mysql_fetch_array(mysql_query($SQL,$PVE)); $PrimoBanner341=$PrimoHotel341[filebanner341]; } $VISBANNER341="S"; if ($PrimoBanner341=="") { $VISBANNER341="N"; } ?>