ok ha funzionato tutto.
ho dovuto solo correggere la query di inserimento levando SET.
mi dava un errore.
grazie mille ancora!!!!!