asp for i=1 to rs.recordcount的问题

来源:百度知道 编辑:UC知道 时间:2024/06/08 04:08:08
为什么我在用for i=1 to rs.recordcount next循环的时候,循环出来的内容会少一个呢,也不知道那里出问题了;
if not rs.bof and not rs.eof then
for i=1 to rs.recordcount
%>
<a href="backlogin/guest/pic/<%=rs("guest_img")%>" rel="lightbox[plants]" title="<%=rs("guest_name")%>"><img src="backlogin/guest/pic/<%=rs("guest_img")%>" width="60" height="100" alt="Plants: image <%=i%> 0f <%=rs.recordcount%> thumb" /></a>
</div>
<div class="thumbnail">
<%

next

for i=1 to rs.recordcount
next %>
<a href="backlogin/guest/pic/<%=rs("guest_img")%>" rel="lightbox[plants]" title="<%=rs("guest_name")%>"><img src="backlogin/guest/pic/<%=rs("guest_img")%>" width="60" height="100" alt="Plants: image <%=i%> 0f <%=rs.recordcount%> thumb" /></a>
</div>
<div class="thumbnail">
<%

输出放最后

rs . movenext