插入数据代码如下:
<%
zhuti=Request.Form("zhuti")
name0=Request.Form("name")
danwei=Request.Form("danwei")
tel=Request.Form("tel")
email=Request.Form("email")
time0=Request.Form("time")
content=Request.Form("content")
dim connstr
connstr="provider=Microsoft.Jet.OLEDB.4.0;Data source=" & server.MapPath("cyj.mdb")
set cn=server.CreateObject("adodb.connection")
cn.open connstr
set rs0=cn.Execute("insert into liuyan(zhuti,name,danwei,tel,email,time,content) values ('"&zhuti&"','"&name0&"','"&danwei&"','"&tel&"','"&email&"','"&time0&"','"&content&"')")
cn.close
%>
调试时总会出现如下错误:
错误类型:
Microsoft JET Database Engine (0x80040E14)
INSERT INTO 语句的语法错误。
/asp_qiye/lyxs.asp, 第 16 行
(其中16行为set rs0=cn.Execute("insert into liuyan(zhuti,name,danwei,tel,email,time,content) values ('"&zhuti&"','"&name0&"','"&danwei&"','"&tel&"','"&email&"','"&time0&"','"&content&"')") )
找了N久也找出啥错误
哪位仁兄能帮帮我啊?