ozpo1
03-20-2006, 12:53 PM
Hi, I'm using asp to send information to mysql database.
One of the variabels that I'm sending is:
tsime=time()
and my problem is that when I'm calling this page I get the following error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "(Contractor,Service,"]'
/FinalStep.asp, line 27
I know the problem is because I'm using time(), because when I give a fix value to tsime it's working just fine.
In mysql defination, tsime is TIME, what is wrong? how can I FIX IT?
Thanks in advanced, Oz.
This is line 27:
objConn.Execute("INSERT INTO " & session("dbCategory") & "(Contractor,Service,ProjectStarts,Commercial,SquareFotage,FirstName,LastName,City,ZipCode,Email,Phon eNumber,Time) VALUES( '" + contractor + "' , '" + service + "', '" + ProjectStarts + "', '" + Commercial + "', '" + SquareFotage + "','" + FirstName +"','" + LastName +"','" + City + "','" + session("zipcode") +"', '" + Email + "','" + PhoneNumber + "','" + tsime + "')")
One of the variabels that I'm sending is:
tsime=time()
and my problem is that when I'm calling this page I get the following error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "(Contractor,Service,"]'
/FinalStep.asp, line 27
I know the problem is because I'm using time(), because when I give a fix value to tsime it's working just fine.
In mysql defination, tsime is TIME, what is wrong? how can I FIX IT?
Thanks in advanced, Oz.
This is line 27:
objConn.Execute("INSERT INTO " & session("dbCategory") & "(Contractor,Service,ProjectStarts,Commercial,SquareFotage,FirstName,LastName,City,ZipCode,Email,Phon eNumber,Time) VALUES( '" + contractor + "' , '" + service + "', '" + ProjectStarts + "', '" + Commercial + "', '" + SquareFotage + "','" + FirstName +"','" + LastName +"','" + City + "','" + session("zipcode") +"', '" + Email + "','" + PhoneNumber + "','" + tsime + "')")