Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL-Insert
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00601657
Message ID:
00601712
Views:
22
That's what I tried. Here's my exact code:

q_clientnum = Trim(Session("xclient"))
q_name = Request.Form("q_name")
q_subject = Request.Form("q_subject")
q_comments = Request.Form("xcomments")
q_contact = Request.Form("xcontact")
q_navigate = Request.Form("xeasynav")
q_rating = Request.Form("xrating")
q_speed = Request.Form("xspeed")

'Get connected to the database.
set recset = Server.CreateObject("ADODB.Connection")
recset.Open "sf_login"

theSQL = "insert into comments "
theSQL = theSQL & "(comid,clientnum,name,subject,"
theSQL = theSQL & "contact,comments,navigate,rating,speed)"

theSQL = theSQL & " values ('" & q_comid & "','" & q_clientnum & "','" & q_name & "','" & q_subject & "'," & q_contact & ",'" & q_comments & "'," & q_navigate

theSQL = theSQL & ",'" & q_rating & "','" & q_speed & "')"
Response.Write theSQL

set userSet = recset.Execute(theSQL)


I've tried double and triple quotes. Any suggestions?
Doug Phillips
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform