$query = "INSERT INTO persone (nome, email, anni) VALUES ('".$_POST['nome']."', '".$_POST['email']."', '".$_POST['anni']."')";

prova cosi'