| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 875 人关注过本帖
标题:一连串点击率问题
只看楼主 加入收藏
zzh_man
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2010-7-18
收藏
得分:0 
还是不懂代码能详细点吗
这是我的代码
<%
exec="select top 6 * from  web_news order by id desc "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<%
if rs.eof and rs.bof then
response.write("暂时没有数据")
else
do while not rs.eof
%>      
<table width="100%" border="3" cellpadding="4" cellspacing="4">
  <tr>
    <th width="65%" scope="row">下载排行榜</th>
    <td width="35%">浏览次数</td>
   
  </tr>
  <tr>
    <th scope="row"><a href="http://sjzfls. target="_blank"><%=trim(rs("nTitle"))%><font color="#8F8F8F">日期:</font><%=trim(rs("nTime"))%></a></th>
    <td><div align="center"><%=trim(rs("nHits"))%>次</div></td>
  </tr>
   
</table>
<%
rs.movenext
loop
end if
%>
2011-03-28 11:38
hams
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:18
帖 子:912
专家分:3670
注 册:2008-7-30
收藏
得分:0 
<%s=0
exec="select top 6 * from  web_news order by id desc "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<%
if rs.eof and rs.bof then
response.write("暂时没有数据")
else
do while s>4 AND not rs.eof
s=s+1
%>      
<table width="100%" border="3" cellpadding="4" cellspacing="4">
  <tr>
    <th width="65%" scope="row">下载排行榜</th>
    <td width="35%">浏览次数</td>
   
  </tr>
  <tr>
    <th scope="row"><a href="http://sjzfls. target="_blank"><%=trim(rs("nTitle"))%><font color="#8F8F8F">日期:</font><%=trim(rs("nTime"))%></a></th>
    <td><div align="center"><%=trim(rs("nHits"))%>次</div></td>
  </tr>
   
</table>
<%
rs.movenext
loop
end if
%>

俺不高手,俺也是来学习的。
俺的意见不一定就对,当你不认同时请点忽视按钮。
当走到十字路口不知该如何走时,可在论坛问下路,但你若希望别人能一路把你送到目的地,显然是不现实的,因为别人也有自己要走的路。
2011-03-28 14:32
快速回复:一连串点击率问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014522 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved