n 行n列的显示数据

类别:Asp 点击:0 评论:0 推荐:

<%
 rs.open sql,conn,1,1
 i=1
 do while not rs.eof
 if i mod 3 = 1 then
     response.write "<br/>"
 end if
 %>
   <td> <img hspace=1 src=""></td>
 
<%

 if i mod 3 =0 then          '每行三列
     response.write "</tr>" 
 end if
rs.movenext
i = i + 1
if i = 4 then i = 1
loop
%>

本文地址:http://com.8s8s.com/it/it8480.htm