<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("mydb.mdb")
%>
<html>
<%
username=session("username")
set rs=server.CreateObject("adodb.recordset")
sql="select * from topic where id is null"
rs.open sql,conn,1,3
discussname=request("discussname")
rs.addnew
rs("discussname")=discussname
rs("topicname")=trim(request("topicname"))
rs("content")=trim(request("content"))
rs("pubuser")=session("username")
rs("pubtime")=now()
rs.update
rs.close
set rs=nothing
set objrs=server.createobject("adodb.recordset")
mysql="select * from [user] where username='" & username &"'"
objrs.open mysql,conn,1,3
objrs("pubcount")=objrs("pubcount")+1
objrs.update
objrs.close
set objrs=nothing
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>处理发表</title>
</head>
<body >
<p> </p>
<p> </p>
<p> </p>
<p align="center"><font size="4" color="#FF00FF">成功发表主题!</font></p>
<p align="center"><a href="listopic.asp?discussname=<%response.write discussname%>">点这里返回</a></p>
</body>
</html>
这里的11行指的是:rs.open sql,conn,1,3
出现的问题是:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e10'
[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。
/kaishi/post.asp,行 11
caiyakang,请您看看,这是怎么回事?