<% 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 tt
tt=rs11("Id")
set rs12=server.CreateObject("adodb.recordset")
sql3="SELECT * FROM reply where Id="&TT
rs12.open sql3,conn,1,1 %>
<% do until rs12.eof %>
<%=rs12("Reitem")%>
<%rs12.MoveNext
loop
rs12.Close
Set rs12=Nothing%>
</P>
</a></div>
</DIV>
<H1 class=title> </H1>
<% rs11.MoveNext
loop %>
想说明的是:为什么rs11能循环正常,而获取rs11中id的rs12只能循环列出一条.
皈依舞
拉丁的传说
相关分类