Originariamente inviato da las
$query2 = "INSERT INTO amici ....... ";
$result = mysql_query($query) or die(mysql_error());

credo che l'errore sia solo che stai usando la variabile $query anzichè $query2

Ora quando esegue la query mi dice 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1' at line 1'.
Grazie ancora per il tuo aiuto.