asp分栏的问题(附代码)

来源:百度知道 编辑:UC知道 时间:2024/07/03 13:29:06
我想网站的产品这样显示,可是,怎么样才能实现啊?我不太会,请各位高手教教我啊!!---------------
|品牌1 | 品牌2 | 品牌3 | 品牌4 |品牌5|
|品牌6 | 品牌7 | 品牌8 | 品牌9 |品牌10|
..... 每页最多显示20个
下面这段代码该怎么改(帮忙改好了发我看下)
<!--产品推介开始-->
<%
sql="select top 6 prono,title,picflag from product where state='1' and nomflag='1' order by prono"
rs.Open sql,cn,0,1,1
i=1
do while not rs.EOF
if i mod 1 = 0 then Response.Write "<tr>"
%>

<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="8" colspan="3"></td>
</tr>
<tr>
<td width="94" align="left" valign="top">
<table border="0" cellpadding="0" c

<%
sql="select top 6 prono,title,picflag from product where state='1' and nomflag='1' order by prono"
rs.Open sql,cn,0,1,1
i=1
do while not rs.EOF
if i = 1 then Response.Write "<tr>"
%>

<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="8" colspan="3"></td>
</tr>
<tr>
<td width="94" align="left" valign="top">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#DDDDDD">
<tr>
<%
if rs("picflag") = "1" then
%>
<td><a href="product_display.asp?keyno=<%=rs("prono")%>"><img src="admin_hisunair/pic_display.asp?code=product&ke