<tablewidth="100%"border="0"cellpadding="0"cellpacing="0"cellpacing="0">
<%dowhilenotrs.eof%>
<tr>
<tdheight="80"><imgsrc="<%=rs("picture")%>"width="160"height="80"></td>
</tr>
<%i=i+1
ifi>=MaxPerPagetheneexitdo
rs.movenext
loop
%>
</table>
The records are arranged as follows:
1
2
3
4
5
If I want to change the record arrangement to
123
45
So how to change the above code, please help me
The code copy is as follows:
<tablewidth="100%"border="0"cellpadding="0"cellpacing="0"cellpacing="0">
<%i=0
dowhilenotrs.eof
ifimod3=0then%>
<tr>
<%endif%>
<tdheight="80"><imgsrc="<%=rs("picture")%>"width="160"height="80"></td>
<%
if(i+1)mod3=0then
%>
</tr>
<%endif%>
<%
i=i+1
ifi>=MaxPerPagetheneexitdo
rs.movenext
loop
%>
</table>