在Dreamweaver中,上传得图片怎么控制它按行或按列输出?

来源:百度知道 编辑:UC知道 时间:2024/05/28 11:20:58
在ASP中,我做了一个图片上传后台,可是把图片上传上去后怎么在控制它的输出。比如我要让它在一个页面上输出2行3列,然后再换到下一页,以同样的方式输出.那位编程高手指点下!

<table border="0" cellpadding="0" width="100" id="table3" cellspacing="0" style="margin-top: 3">
<tr>
<%
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from news order by id desc"
rs.open sql,conn,3,3
if not rs.eof then
i=1
do while not rs.eof
%>
<td><p style="line-height: 150%; margin-left:3px; margin-right:3px" align="center"><a href="news.asp?id=<%=rs("id")%>"><img border="0" src="<%=rs("tupian")%>"width="100" height="100" style="border:1px solid #000000;"></a><br><a href="news.asp?id=<%=rs("id")%>"><%=left(rs("name"),7)%></a></td><%if i mod 3 = 0 then%></tr>
<%end if
rs.movenext