<table>
<tr>
<%
i=1
do while not rs.eof
%>
<td><%=rs("classname")%></td>
<%if i = 5 then
response.write "</tr><tr>"
i=0
end if
i=i+1
rs.movenext
loop
%>
</tr>
</table>
j=0 '定义一个变量用来记录显示的信息条数
do while not rs1.eof
j=j+1 '每循环一次让记录加一
if j mod 6 =0 then '判断是否能被6整除
response.write "<br>" '如果能被6整除换行
end if
%>
<%
if not Rs1.eof then
%>
mpmenu<%=menuid%>.addItem(new mMenuItem(' <span style="line-height: 20px;"><%=Rs1("bigclassname")%>','bigclass.asp?typeid=<%=menuid%>&bigclassid=<%=Rs1("bigclassid")%>','self',false,'<%=Rs1("bigclassname")%>','','','',''));
<%
end if
rs1.movenext
我也是初学者
自己写的,希望对你有用
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="87" id="AutoNumber2" height="114">
<tr>
<%
if rs.eof and rs.bof then
'response.write sql
response.write"没有户型图"
else
i=1
rowcount=1
do while not rs.eof
............
if not rs1.EOF then
j=1
do while not rs1.eof
if j mod 6=0 then
response.write 你的代码&"<BR>"
else
response.write 你的代码
end if
i=i+1
rs1.movenext
loop
..................
%>