|
我做了一个排行榜,但是不能自动把点击数多的数据排在前面。。怎么实现这个功能啊
<%
exec="select id,musicname,name,map,hits from music where hits>0"
set rs1=server.createobject("adodb.recordset")
rs1.open exec,conn,1,1
%>
<%do while not rs1.eof%>
<tr>
<td width="53%" align="center" valign="middle"><p align="center"><%=rs1("musicname")%></td>
<td width="24%" align="center" valign="middle">
<p align="center"><a href="play.asp?id=<%=rs1("id")%>" & <%=rs1("map")%> target="_blank">视听</a></td>
<td width="23%" align="center" valign="middle"><p align="center"><%=rs1("hits")%></p></td>
</tr>
<%rs1.movenext
loop%>
大哥们帮帮忙,谢谢! |
|