<% set rs11=server.CreateObject("adodb.recordset")sql2="SELECT * FROM x1"rs11.open sql2,conn,1,1 %><% do while not rs11.eof %><H1 class=title><A href="javascript:void(0)" class="a1">(<%=rs11("Name")%>) <%=rs11("Name1")%></A></H1><DIV class=content><P><%(rs11("Other").Value)%></P><P><% dim tttt=rs11("Id")set rs12=server.CreateObject("adodb.recordset")sql3="SELECT * FROM reply where Id="&TTrs12.open sql3,conn,1,1 %><% do until rs12.eof %><%=rs12("Reitem")%><%rs12.MoveNextlooprs12.CloseSet rs12=Nothing%> </P></a></div></DIV><H1 class=title> </H1><% rs11.MoveNextloop %>想说明的是:为什么rs11能循环正常,而获取rs11中id的rs12只能循环列出一条.
添加回答
举报
0/150
提交
取消