ops,scusate,ho fatto un pò di confusione,con il codice di satifal mi esce fuori:

query di registrazione non riuscitaYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-mail) VALUES ('nome','pass','mia@mail.it')' at line 1

cavicchiandrea,non ti seguo