2个回答
展开全部
支持楼上的sql语句
sql="select top 5 * from Ex_log order by bits desc"
然后通过asp语言读取出来就可以了
<!--#include file="conn.asp"-->
<%
Set rs = Server.CreateObject("ADODB.RecordSet")
sql="select top 5 * from Ex_log order by bits desc"
rs.Open sql,conn,1,1
if not rs.eof then
do while not rs.eof
response.write "<a href='content.asp?id="&rs("主键字段名")&"'>"&rs("文章标题字段名")&"</a><br>"
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
sql="select top 5 * from Ex_log order by bits desc"
然后通过asp语言读取出来就可以了
<!--#include file="conn.asp"-->
<%
Set rs = Server.CreateObject("ADODB.RecordSet")
sql="select top 5 * from Ex_log order by bits desc"
rs.Open sql,conn,1,1
if not rs.eof then
do while not rs.eof
response.write "<a href='content.asp?id="&rs("主键字段名")&"'>"&rs("文章标题字段名")&"</a><br>"
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询