Execute problem, Incorrect syntax
I am getting the error
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 8: Incorrect syntax near 'm'.
/members/addart_process.asp, line 6
<%
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "dsn","sa","password"
mySQL = "INSERT INTO dbo.article (ArticleTitle,ArticleCont,ArticleDate,ArticleAutho r)"
mySQL = mySQL & " VALUES ('" & request.form("ArticleTitle") & "','" & request.form("ArticleCont") & "','" & request.form("ArticleDate") & "','" & request.form("ArticleAuthor") & "')"
oConn.execute (mySQL)
oConn.close
response.Redirect("../done.asp") %>
Any help would be much appreciated.
Thank you,
Jon Turlington
__________________
Thank you,
Jon Turlington
|