ma lo stesso non mi trovo... non va!!Originariamente inviato da Manuelandro
Codice PHP:
$query = "SELECT * FROM hotel WHERE Comune = '$_POST[Comune]' AND Stelle = '$_POST[Stelle]'";
$result = mysql_query($query, $db);
$num1 = mysql_num_rows($result);
if($num1 != 1) {
echo"Nessun hotel a tot stelle in questo comune"; }
else {
while($mal = mysql_fetch_array($result))
{ echo"$mal[hotel] $mal[tel] $mal[bla bla bla]"; }
molto pià semplice no?