ASP 全列问题

来源:百度知道 编辑:UC知道 时间:2024/05/21 05:05:18
请大家帮个忙我想让我这句代友分列显示怎么显示?谢谢了!<%set rs=server.createobject("adodb.recordset")
rs.open "select Top 5 * from shop_books where newsbook=1 order by bookid desc",conn,1,1
if rs.recordcount=0 then
%>
<table width="95%" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td align=center>暂无新品包包</td>
</tr>
</table>
<%
else
while not rs.eof
%>

<!--#include file="shangping_new.asp"-->
<%rs.movenext
wend
end if

1楼的兄弟你那样不行,页面会乱的
2楼的兄弟你那样是错误的
<%set rs=server.createobject("adodb.recordset")
rs.open "select Top 5 * from shop_books where newsbook=1 order by bookid desc",conn,1,1
if rs.recordcount=0 then
%>
<table width="95%" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td align=center>暂无新品包包</td>
</tr>
</table>
<%
else
%>
<table><tr>
<%
do while not rs.eof
%>

<td>
<!--#include file="shangping_new.asp"-->
</td>
<%rs.movenext
if rs.eof then exit do
loop%>
</tr></table>
<%
end if
%>

接上者:

<table>
<%
while not rs.eof
%>
<tr>
<td>
<!--#include file="shangping_new