|
I am not too sure about that error code, but it could be referring to either the connection string or the insert statement. So two things come to mind:
This code is for MS SQL, but it should be the same for MySQL, or at least pretty close.
One:
Try setting up the connections something like this
sDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Drive:\Path\NameOfDatabase;" '
Set rs = Server.CreateObject("ADODB.RecordSet")
Set cnn=Server.CreateObject("ADODB.Connection")
cnn.open sDSN
Two:
Check that you have matching field-value pairs in the insert statement and that they are correct for the table column type
sSQL = "INSERT INTO TableName(Field1,Field2) VALUES ('"&Var1&"','String')"
cnn.Execute(sSQL)
HTH
Bill
__________________
W F Peyton
Web Site Analytics for Serious e-Commerce Sites from Web Stats Gold
www.webstatsgold.com
|