[求助]留言本内容插入数据库出错
addcom.aspnickname=trim(request("nickname"))
qq=trim(request("qq"))
email=trim(request("email"))
homepage=trim(request("homepage"))
address=trim(request("address"))
telephone=trim(request("telephone"))
subject=trim(request("subject"))
sex=trim(request("sex"))
content=trim(request("content"))
set conn=server.CreateObject("adodb.connection")
set rs=server.CreateObject("adodb.recordset")
dim addcomstr1
conn.open "provider=microsoft.jet.oledb.4.0;data source="_
&server.MapPath("lanyadb.mdb")&";persist security info=false"
addcomstr1="select * form commends"
rs.open addcomstr1,conn,3,3 //19行
rs.addnew
rs("nickname")=nickname
rs("qq")=qq
rs("email")=email
rs("homepage")=homepage
rs("address")=address
rs("telephone")=telephone
rs("subject")=subject
rs("sex")=sex
rs("content")=content
rs("datetime")=now()
rs.update
rs.close
set rs=nothing
%>
提示错误:
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft JET Database Engine
语法错误 (操作符丢失) 在查询表达式 '* form commends' 中。
/lanya/addcommends.asp,行19
我尝试改了 conn 和str名称都不行啊,该怎么改啊??谢谢了
[此贴子已经被作者于2006-5-26 10:00:52编辑过]