当前位置: 代码迷 >> ASP >> 请教怎么做到这种重复
  详细解决方案

请教怎么做到这种重复

热度:287   发布时间:2012-02-08 19:52:21.0
请问如何做到这种重复?
我只会用DREAMWEAVER做asp,
我已经建立了记录集recordset,
我只会做这种重复
表格:
1
2
3
4
5
6

请问下面这种重复怎么做?
123
456

就是先重复三个单元格记录,然后再重复行。

最好能提供代码谢谢了!

------解决方案--------------------
<table width=200 border=1>
<%
if not rs.eof then
do while net rs .eof
%>
<tr> <td> <%=rs(1)%> </td>
<%
rs.movenext
i=i+1
if i mod 3 = 0 then
response.write " </tr> "
end if
loop
%>
</tr> </table>
  相关解决方案