<%
set rs = server.createobject("adodb.recordset")
sql = "select * from newstype"
rs.open sql,conn,1,3
rscount=rs.recordcount
%>
<%do while not rs.eof%>
<%
typeID=cstr(=rs("ypeidID"))
%>
<%
n=0
n=n+1
%>
<%
set rs2 = server.createobject("adodb.recordset")
sql2="select * from smallclass where ypeidID='"&typeID&"'"
rs2.open sql2,conn,1,3
%>
<%
do while not rs2.eof
%>
<%
rs2.movenext
Loop%>
<%
rs.movenext
loop
%>
提示说至少有一个没有赋值...我把sql2="select * from smallclass where ypeidID='"&typeID&"'" 改成
sql2="select * from smallclass"就可以运行...但是rs2就根本没用...
请高手指导一下....是不是不能循环赋值的?
循环赋值出现问题...大家来看下...