我做了一个表单使用POST提交,调用append.asp文件,我用显示传递的参数都正确,但是不能保存到数据库中,它报告conn.execute(sql)语句有错误
<body>
<%
a1=request.Form("text1")
a2=request.form("select")
a3=request.form("text2")
a4=request.form("text3")
tim=now()
set conn=server.CreateObject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.MapPath("shuju.mdb")
sql="select * from lr order by rdate desc "
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
idh=rs.recordcount+1
response.write(idh)
sql="insert into info lr(id,name,icon,email,text,date,rtext,rdate) values('"&idh&"','"&a1&"','"&a2&"','"&a3&"','"&a4&"','"&tim&"','""','"&tim&"')"
conn.execute(sql)
conn.close
set conn=nothing
%>
</body>