大忙!
我在想把一些取到的片示出,一行示4,到了第5的候自到下一行示,有什好的代?!
[解决办法]
<%
set rs=server.createobject( "adodb.recordset ")
sql= "select * from web_shop_goods order by Id desc "
rs.open sql,conn,1,1
if not rs.eof then
Do While Not rs.eof
if rs.eof then
exit do
response.end
end if
%>
<tr>
<%
for l=1 to 4
if rs.eof then
exit for
response.end
end if
%>
<td>
<img src= " <%=aryReturn(0)%> >
</td>
<%
rs.movenext
next
%>
</tr>
<%
loop
end if
set rs=nothing
%>