如何将从数据库循环提取的图片分成5行2列显示?
我现在的代码如下:
<%
for i=1 to rs.pagesize
If rs.EOF Then Exit For
filepath=rs("filepath")
id=rs("id")
ext=rs("picext")
file=filepath+cstr(id)+"."+ext
file2=filepath+cstr(id+1)+"."+ext
%>
<tr bgcolor="#7c7c7c">
<td height="80" width="80">
<a href="work_011.asp?file=<%=file%>" target="mainFrame"><img src="<%=file%>" width="80" height="80"></a>
</td>
<td height="80" width="80">
<a href="work_011.asp?file=<%=file2%>" target="mainFrame"><img src="<%=file2%>" width="80" height="80"></a>
</td>
</tr>
<%
rs.movenext
next
%>
现在这样倒是可以显示成5行2列,但是图片就会重复出现,该怎么处理?谢谢各位了