ciao nicola, sto provando cosi' ma non mi da niente...
Codice PHP:
<?php
$sqlmenu=mysql_query("select hotel, cartella, link, attivo from albergo where attivo = '1' order by hotel asc");
while($rigamenu=mysql_fetch_array($sqlmenu))
{
$hotel=$rigamenu['hotel'];
$cartella=$rigamenu['cartella'];
$link=$rigamenu['link'];
$hotel=str_replace("HOTEL ","",$hotel);
$hotel=str_replace("RESIDENCE ","",$hotel);
$htmlhot=str_replace(" ","%20",$hotel);
$sql_prezzo="select min(prezzo) as minore from offerte where albergo='$hotel'";
$risultato_prezzo = @mysql_query($sql_prezzo)
or die("Impossibile eseguire l'interrogazione del prezzo");
while ($rigaprezzominore = mysql_fetch_array($risultato_prezzo))
{
$prezzo=$rigaprezzominore['prezzo'];
if ($hotel=="HOTEL 4 STELLE SUPERIOR") {
$blocco_opzioni.="<option value=\"http://www.sito.it/hotel-4-stelle/4_stelle_superior.php\">$hotel</option>";
} else {
$blocco_opzioni.="<option value=\"http://www.sito.it/$cartella/$link.htm\">$hotel</option>";
}
$menulo.='<span class=testoazzurrosmall>[url="#'.$htmlhot.'"]'.$hotel.' - '.$prezzo.'[/url]</span>
';
}}
echo $menulo;
?>
Forse sbaglio a mettere la query che mi hai dato?