vorrei sapere se è fattibile una cosa del genere...
Codice PHP:
$sql="SELECT * from hotel where citta = '$destinazione' ";
$risultato=mysql_query($sql);
$tab = array();
while ($riga = @mysql_fetch_assoc($risultato))
{
$tab[] = $riga['nome_tabella'];
}
print_r($tab); //contiene i nomi delle tabelle
[B]$sql2="SELECT * from ($tab) ";[/B]
$risultato2=mysql_query($sql2);