Altra domanda:
faccio una query, se non ottengo risultati scrivo "ko", se ottengo qualche risultato scrivo "ok". Come si fa?

codice:
$query3=mysql_query("select distinct luogo from foto where luogo='$cit1' order by citta asc");
while ($row2=mysql_fetch_assoc($query2))
{
echo "ok";
}
come faccio a mettere la condizione "ko"?

Grazie