意外错误,怎么解决?急!
我写的一段程序如下:
<%
if dbrs.RecordCount >0 then
for j=1 to pagesize
%>
<tr <%if j mod 2=0 then response.Write "bgcolor='#FFF3FF' "%><%if j mod 2=1 then response.Write "bgcolor='#FFF3F7' "%>class="bbs0">
......
<%
sql="select * from members where id="&dbrs("author_id")
author_dbrs.Open sql,dbcn,1,1
%>
<td width="32%" bgcolor="#FFF3FF" colspan="2"><b>楼主</b>:<a href="mailto:<%=author_dbrs("email")%>"><%=dbrs("author_name")%></a></td>
<td width="68%" bgcolor="#FFF3FF">
<table width="100%" border="0" ID="Table2">
<tr>
<td width="80%">主题:<%=dbrs("bbs_title")%></td>
<td width="20%" align="center"><a href="meirongM.htm"><strong>专家回复</strong></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" width="13%" valign="top"><img src="/images/face/image<%=author_dbrs("face")%>.gif"></td>
<td bgcolor="#fffbff" width="19%" valign="top"> <font color="#666666">来自:</font><br>
<%=dbrs("author_IP")%><br>
<font color="#666666">时间:</font><br>
<%=formatdatetime(dbrs("add_time"),2)%><br>
<%=formatdatetime(dbrs("add_time"),3)%> </td>
<td bgcolor="#ffffff" widht="68%" valign="top"><%=replace(replace(dbrs("bbs_content"),chr(13),"<br>"),chr(32)," ")%> </td>
</tr>
<%
author_dbrs.close
dbrs.Close
sql = "select * from bbs where parent_id="&dbrs("id")&" order by id" /第148行
dbrs.Open sql,dbcn,1,1
for i=1 to dbrs.RecordCount
sql="select * from members where id="&dbrs("author_id")
author_dbrs.Open sql,dbcn,1,1
%>
运行后出现如下错误。
错误 '80020009'
发生意外。
/bbsdetail.asp,行148