大的平底锅:ASP文章排列问题

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 02:10:24
<%Set rs= Server.CreateObject("ADODB.Recordset") %>
<% sql="select top 10 * from zx where classid="&classid&" order by id desc"
rs.open sql,conn,1,1
do while not rs.eof %>

<%=rs("tit")%><br>

<% rs.movenext
loop
rs.close%>
----------------------------
这样数据是这样表现的:
标题1
标题2
.
.
.
标题10

我现在想它这样表现

标题1 标题6
标题2 标题7
标题3 标题8
标题4 标题9
标题5 标题10

意思就是能分开来,我实在想不出来该怎么弄了。

用表格分开啊,先取top5写一列,
再sql="select * from zx where classid="&classid&" and id>=5 and id<=10 order by id desc"写一列就可以了

从6到10