"; $q = "select * from immobili where ID = " . $_GET['ID']; $r = mysql_query($q, $LINK); $a = mysql_fetch_array($r); echo "
Destinazione: " . $a['destinazione'] . "
";
echo "Metratura: " . $a['metratura'] . " mq
Provincia: " . $a['provincia'] . "
";
echo "Comune: " . $a['comune'] . "
";
echo "Indirizzo: " . $a['indirizzo'] . "
";
echo "Ubicazione: " . $a['ubicazione'] . "
Consistenze: " . $a['consistenze'] . "
";
echo "Responsabile: " . $a['responsabile'] . "
";
echo "Ultimazione: " . $a['ultimazione'] . "
Prezzo indicativo: " . number_format($a['prezzo'], 0, ',', '.') . " Euro
"; echo nl2br($a['descrizione']); echo "[CLICCA QUI PER RICEVERE ULTERIORI INFORMAZIONI]
"; // Link statici, attivi se ci sono le immagini $settori = array ("gen","map","plan","mod"); $nomi = array ("gen" => "Generali", "map" => "Mappe", "plan" => "Planimetrie", "mod" => "Modelli 3D"); foreach ($settori as $sector) { $q = "select ID from immagini where categoria = '" . $sector . "' and immobile = " . $_GET['ID']; $r = mysql_query($q, $LINK); if (($_GET['sec'] != $sector) and (mysql_num_rows($r) > 0)) echo "" . $nomi[$sector] . ""; else echo $nomi[$sector]; if ($sector != "mod") echo " | "; } // Thumbnails delle immagini generiche presenti echo ""; $q = "select ID from immagini where categoria = '" . $_GET['sec'] . "' and immobile = " . $_GET['ID'] . " order by ID"; $r = mysql_query($q, $LINK); $j = 0; // $j mi serve come contatore interno del numero di riga while ($o = mysql_fetch_object($r)) { echo ""; $j++; } echo "
"; echo ""; // // Elenco Immobili echo ""; echo "