$query="SELECT nome,password,livello FROM utenti WHERE nome='$user' AND password='$pwd'";