Grazie per la risposta.
Ma così facendo come capisce che mi deve estrarre (ad esempio) solo tutti i nomi degli alberghi che hanno la camera singola?
Di solito per estrarre il risultato uso
Codice PHP:
[COLOR=crimson]
where nome = ... etc
[/COLOR]
che applicato alla mia query sarebbe
Codice PHP:
[COLOR=crimson]
$count = mysql_db_query("$nome_database", "select count(*) from tabella1 where nome = .. etc");
$res_count = mysql_fetch_row($count);
[/COLOR]
invece a me serve una cosa tipo
$count = mysql_db_query("$nome_database", "select count(*) from tabella1 where nome = .. etc" and select count(*) from tabella2 where categoria = 'singola' );
$res_count = mysql_fetch_row($count);
Un po' rude ma credo si capisca meglio così