salve a tutti ho uno script per uploadare un db mysql e sto usando le seguenti righe di codice
per il campo id1 non ci sono problemi l'upload avviene in maniera corretta.codice:strSQL="UPDATE cat SET cat = '"& newcat &"', id1 = "& id &" WHERE id="& catid conn.Execute(strSQL)
ho problemi con il campo cat che è di tipo text, se inserisco una frase corta non ci sono problemi, ma se inserisco un testo lungo mi viene fuori il seguente errore:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-4.0.17-nt]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 'età del Bronzo e del Ferro sono certificate da numerosi reperti
/mercatino/admin/Admin_update_Sotto_categoria.asp, line 84
come mai ? come posso risolvere?