session_start();?> include("../inc/db_conn.inc.php"); $idpagina=$_REQUEST['pagina']; $localita=$_REQUEST['localita']; $comune=$_REQUEST['comune']; $sql = "SELECT id,provincia FROM comuni WHERE npcomune='".$comune."'"; $query = @mysql_query ($sql, $dbLink); $row=@mysql_fetch_array ($query); $prov = $row['provincia']; $serweb =$_SERVER['HTTP_HOST']; if (($prov=="Bologna" || $prov=="Forlė-Cesena" || $prov=="Ravenna" || $prov=="Rimini" ) && ($serweb=="www.eventi-bologna.it" || $serweb=="eventi-bologna.it")) { $sql = "SELECT id FROM localita WHERE npcomune='".$comune."' AND nplocalita='".$localita."'"; //echo $sql; $query = @mysql_query ($sql, $dbLink); $row=@mysql_fetch_array ($query); $sql = "SELECT * FROM localitadesc WHERE idpagina='".$idpagina."' AND npcomune='".$comune."' AND idlocalita=".$row['id']; //echo $sql; $query = @mysql_query ($sql, $dbLink); $row=@mysql_fetch_array ($query); ?>