請大俠們幫忙!
我現在想把一些動態取到的圖片顯示出來,一行顯示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
%>