include("inc/db.inc"); $conn = mysql_connect($host,$user,$pass) or die("Errore nella connessione MySQL: " . mysql_error()); mysql_select_db($db,$conn) or die("Errore nella selezione del database: " . mysql_error()); $page=$_GET['page']; $num=8; ?>
";
$ii+=1;
print"";
// fase di estrazione di una sola miniatura per ogni appartamento
$img_query = 'SELECT * FROM '.$pref.'immagini where id_app=' .$riga['id_app']. ' order by id Limit 1';
$img_rs = mysql_query($img_query,$conn) or die("Errore nella query:" . mysql_error());
while($img_riga=mysql_fetch_array($img_rs)) {
// print"";
print"";
}
print"$riga[titolo] [$riga[luogo] ";
//if ($riga[posti]!="") print " $riga[posti] $text_posti";
print "]
";
if (strpos($riga[opzioni],"pets")>-1) print" ";
if (strpos($riga[opzioni],"pool")>-1) print"";
print"$riga[abstract]... \n\n";
//$domanda='select p1 FROM '.$pref.'tariffe union select p2 FROM '.$pref.'tariffe union select p3 FROM '.$pref.'tariffe union select p4 FROM '.$pref.'tariffe union select p5 FROM '.$pref.'tariffe group by p1, p2, p3, p4, p5 WHERE id_app='.$riga[id_app]. ' order by p1';
$pre_query = 'select p1, p2, p3, p4, p5 FROM '.$pref.'tariffe WHERE id_app='.$riga[id_app];
$pre_rs = mysql_query($pre_query,$conn) or die("Errore nella query:" . mysql_error());
$base=-1;
while($pre_riga=mysql_fetch_array($pre_rs)) {
$indice=1;
for($i=1;$i<6;$i++){
if (($pre_riga['p'.$i]!="")&&($pre_riga['p'.$i]!=0)) {
$lst[$base+$indice] = $pre_riga['p'.$i];
$indice++;
}
$base+=$indice;
}
}
if (count($lst)!=0) print "".$text_price.min($lst)."€ ". $text_to .max($lst)."€\n";
unset($lst);
print"» ".$text_piu."\n";
print"
Sponsored Link:
» Tuscany Italy
Tours