请教数据库的连接问题
大家帮我看看.我的这些数据库的连接看看是怎么回事啊,
%
dim conn
dim connstr
connstr="dbq"="+Server.mappath("guestbook.mdb")+";defaultdir=;driver={microsoft Access Driver(*.mdb)};"
Set conn=Server.CreateObject("ADODB.CONNECTION")
conn.Open connstr
username=request.form("username")
email=request.form("email")
content=request.form("content")
Set rs=Server.CreateObject("adodb.recordset")
sql="select * from guestbook where (id is null)"
rs.open sql,conn,1,2
rs.addnew
rs("username")=username
rs("email")=email
rs("content")=content
rs("time")=now()
rs.update
rs.close
Set rs=nothing
conn.close
Set conn=nothing
%>
错误类型是这样的
错误类型:
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/web/my/guest/save.asp, line 4, column 32
connstr="dbq"="+Server.mappath("guestbook.mdb")+";defaultdir=;driver={microsoft Access Driver(*.mdb)};"
-------------------------------^