我用:select top 15 * from forum_topic order by topic_id desc 选择最新的15条信息,可是选出的15条信息排列有错,见:http://asp.qqschool.net/twt/bbs/ss.asp
并不是最新的排在最前,怎么回事?topic_id为自动编号
<table width="90%" align="center"><% sqltt="select top 15 * from
forum_topic order by topic_id DESC"
rst.open sqltt,conn,1,1
i=1 %><tr><td><%
do while not rst.eof
tt=left(rst("t_subject"),20)%>
<a
href="showtopic.asp?topic_id=<%=rst("TOPIC_ID")%>&fourm_id=<%=rst("forum_id")%>" target="_blank"><FONT color=blue>※</FONT><%=tt%></a>
【<%=rst("t_posttime")%>】<br>
<%if i mod 10 = 0 then%>
<!-- modified by dolphin -->
<!-- 问题在这里,不过我不懂你为什么这样做-->
</td></tr><tr><td>
<!-- the end>
<% end if
rst.movenext
i=i+1
loop
rst.close
%>
<!-- modified by dolphin -->
</td></tr>
<!--the end -->
</table>