hai due mysql_query($dati) è normale che ti inserisca il tutto in doppio ...