[求助]循环方法有几种?
请问各位循环方法有几种?
我用这个做了个循环,可是不对的,也是for不对
<%exec="select * from admin1 where stage like '1' order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
rs.PageSize=24
%>
<tr>
<%for i=1 to rs.PageSize
if rs.EOF then
exit for
end if%>
<td><a href="copyshow.asp?id=<%=rs("id")%>" target="_blank"><%=rs("schoolname")%></a><FONT color=#ff0000>信息</FONT>
<%
exec="select * from zpxx where user like '"&rs("id")&"' order by id desc"
set rss=server.createobject("adodb.recordset")
rss.open exec,conn,1,1
rss.PageSize=1
%><%do while not rss.eof%><a href="grshow.asp?copy=<%=rs("id")%>&idid=<%=rss("id")%>" target="_blank"><%=rss("title")%></a> <font color="#929292"><%=rss("dat")%></font>
<% rss.movenext
loop%>
<%
rss.close
set rss=nothing
%><%if rs("zdtj")="1" then%><img src="images/196.gif" width="28" height="14"><%elseif rs("zdtj")="2" then%><img src="images/tj.gif" width="28" height="14"><%end if%></td>
<% if i mod 2 = 0 then
response.write "</tr>"
end if %><%rs.movenext
next
%></tr>
<%
rs.close
set rs=nothing
%>
请问是那里出错?谢谢