主题:[讨论]这段代码哪里出错了?
我是新手,刚入手,现想改一个网站的小程序,结果怎是出错.望各位大虾帮帮我!
错误类型:
ADODB.Recordset (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/xinyu/test.asp, 第 35 行
<%
dim i,sql,rs,count,temp,strid1,strid2
strid1=""
strid2=""
randomize
for i=1 to session("singlenumber")
set rs=server.createobject("adodb.recordset")
sql="select * from question where subjectname='"&session("selectsubjectname") & "'and type='单选题' and haveselect=0 "
rs.open sql,conn,3,2
count=rs.recordcount
temp=fix(count*rnd(20))
[color=800000]rs.move temp[/color]
rs("haveselect")=1
strid1=strid1 & rs("ID") & ","
%>
错误类型:
ADODB.Recordset (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/xinyu/test.asp, 第 35 行
<%
dim i,sql,rs,count,temp,strid1,strid2
strid1=""
strid2=""
randomize
for i=1 to session("singlenumber")
set rs=server.createobject("adodb.recordset")
sql="select * from question where subjectname='"&session("selectsubjectname") & "'and type='单选题' and haveselect=0 "
rs.open sql,conn,3,2
count=rs.recordcount
temp=fix(count*rnd(20))
[color=800000]rs.move temp[/color]
rs("haveselect")=1
strid1=strid1 & rs("ID") & ","
%>