ASP读去数据问题?

来源:百度知道 编辑:UC知道 时间:2024/06/21 18:14:25
图片页面 怎么写才能读去数据库的全部图片 并且 以每行4个的进行排列
我排出来的要不是横的排到头要么是竖着排到头 哎~头疼 请教高手
2楼的谢谢 不过我运行出错了 Microsoft VBScript 编译器错误 (0x800A0410)
循环控制变量 'for' 无效
/zuopin/products.asp, line 88, column 5
for i=1 to 4
----^

试下.

<%for i=1 to rs.recordcount/4+1 %>
<table width="182" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<%
for i=1 to 4
%>
<td width="182" height="203" valign="top"><%=rs("img")''这是图片字段%></td>
<%
next
rs.movenext
%>

</tr>
</table>
<%
next
rs.movenext
%>