遇到麻烦了,看了一个晚上也看不出错在哪里....:(
<!--#include file="conn.asp"-->
<%
t_sex=request.querystring("sex")
set crs=conn.execute("select * from music where sex='"&t_sex&"'")
if not crs.eof then
set nrs=conn.execute("select * from nclassid where id="&crs("classid"))
end if
crs.close
do while not nrs.eof
set rs=conn.execute("select * from music where classid="&nrs("id"))
response.write nrs("nclassid")
do while not rs.eof
response.write rs("歌手")
rs.movenext
loop
rs.close
nrs.movenext
loop
nrs.close
%>
这段代码是我做一个歌手列表的时候用到的一些修饰都简化了.当我将sex传到这个页面处理的时候产生了错误..出错提示的是这句
set nrs=conn.execute("select * from nclassid where id="&crs("classid"))
有错。但是我找来找去也不知道错在哪里..希望各位大哥大姐帮我看看好吗.