请问这段asp代码怎么改成一排显示三个产品?

来源:百度知道 编辑:UC知道 时间:2024/08/20 13:52:34
地址是
http://www.jjchache.cn/shop/rp/index.asp
在右边“最新商品上架排行”中
现在是一列是两个产品,请问怎么改成一列显示三个呢?
现在的代码如下:
因为字符超过了,我就写在这个txt文档里了
http://www.jjchache.cn/shop/rp/daima.txt
下载一下或者在网页里打开一下再查看源文件
请教高手!

感觉代码写的好烂
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select Top 9 * from shop_books where newsbook=1 order by bookid desc",conn,1,1
if rs.eof and rs.bof then
response.write "<center><br><font color=red size=2>对不起,暂无新品!</font></font>"%>
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<tr>
<%
else
n=1
do while not rs.eof %>
<td>产品名称图片价格等</td>
<%
rs.movenext
if (n mod 3)=0 then
response.write("</tr><tr>")
end if
n=n+1
loop

%>
</tr></table>
<%
end if
rs.close
set rs=nothing
%>

是一行显示三个吧?你一行显示两个都会做为什么么3个不会啊?原理是一样的啊

70到116行复制多一份粘贴在116行后面就行了

<%set rs=server.CreateObject("adodb.recordset")
rs.open "select Top 9 * from shop_books where n