dvbbs
收藏本页
联系我们
论坛帮助
dvbbs

堕落街论坛休闲之乐游戏体育 → 【请求帮助:IP流量统计出错】


  共有217人关注过本帖树形打印

主题:【请求帮助:IP流量统计出错】

帅哥哟,离线,有人找我吗?
恐龙
  1楼 个性首页 | 博客 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:宝宝 主题:1 精华:0 贴子:6 排名:0 威望:0 排名:0 注册:2004/1/6 16:11:00 近访:2004/5/10 1:15:00
【请求帮助:IP流量统计出错】  发贴心情 Post By:2004/4/18 21:16:00

IP流量统计的每月时段流量分析 出错 Microsoft VBScript 运行时错误 错误 '800a005e' /bbs/plus_count_show.asp,行170
[此贴子已经被作者于2004-4-18 21:18:04编辑过]


小林在线 www.xiaolin.co.to

诚意交换友情链接
支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
我最简单
  2楼 个性首页 | 博客 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:高二 主题:80 精华:0 贴子:1037 排名:9684 威望:17 排名:87 注册:2003/11/20 16:10:00 近访:2010/1/17 19:56:52
  发贴心情 Post By:2004/4/18 21:45:00

..

你能不能发段代码上来我给你分析下

这我没做过,不过看看或许能给你点建议



      持身涉世,不可随境而迁.须是大火流金而清风穆然,严霜杀物而和气蔼然,阴霾翳空而慧日朗然,洪涛倒海而坻柱屹然,方是宇宙内的真人品.爱是万缘之根,当知割舍.识是众欲之本,要力扫除.作人要脱俗,不可存一矫俗之心;应世要随时,不可起一趋时之念.

<PS:我是流民!>

支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
恐龙
  3楼 个性首页 | 博客 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:宝宝 主题:1 精华:0 贴子:6 排名:0 威望:0 排名:0 注册:2004/1/6 16:11:00 近访:2004/5/10 1:15:00
  发贴心情 Post By:2004/4/19 10:09:00

<!--#include file=conn.asp--> <!-- #include file=inc/const.asp --> <!--#include file="plus_count_conn.asp"--> <% dim theyear,themonth,theday if Request("theyear")="" Then theyear=Year(Date) else theyear=CInt(Request("theyear")) end if if Request.form("themonth")="" Then themonth=Month(Date) else themonth=CInt(Request("themonth")) end if if Request.form("theday")="" Then theday=day(Date) else theday=CInt(Request("theday")) end if

Dvbbs.LoadTemplates("") Dvbbs.stats="IP流量统计" Dvbbs.Nav() Dvbbs.Head_var 2,0,"",""

call main()

Dvbbs.ActiveOnline() Dvbbs.footer()

sub main() dim theaction,i theaction=request("action") if theaction="" then theaction=1 %> <table border="0" align="center" cellpadding="0" cellspacing="1" class=tableborder1> <tr> <th height="25">论坛IP流量统计</th> </tr> <tr> <td class=tablebody1><br>      <img src="plus/count/li.gif" width="15" height="15"><a href="?action=1">每月日流量分析</a>      <img src="plus/count/li.gif" width="15" height="15"><a href="?action=2">每月时段流量分析</a>     <img src="plus/count/li.gif" width="15" height="15"><a href="?action=3">每日时段流量分析</a>     <img src="plus/count/li.gif" width="15" height="15"><a href="?action=4">今日最新<%= mycount(5) %>IP</a><br> <br> <% If theaction<>4 Then %> <form method="post" action="plus_count_show.asp"> <table width="80%" border="0" align="center" cellpadding="3" cellspacing="1"> <tr> <td> <select name="theyear"> <% for i = 2003 to Year(date) response.write "<option value='"&i&"'" if i=theyear then response.write " selected" end if response.write ">"&i&"</option>" next %> </select> 年 <select name="TheMonth"> <% for i = 1 to 12 response.write "<option value='"&i&"'" if i=themonth then response.write " selected" end if response.write ">"&i&"</option>" next %> </select> 月 <% If theaction=3 Then %> <select name="theday"> <% for i = 1 to 31 response.write "<option value='"&i&"'" if i=theday then response.write " selected" end if response.write ">"&i&"</option>" next %> </select> 日 <% End If %> <input name="Submit" type="submit" class="button" value="查询"> <input name="action" type="hidden" id="action" value="<%=theaction%>"> </td> </tr> </table> </form> <br> <% End If %>

<% select case theaction case 1 Call count1() case 2 Call count2() case 3 Call count3() case 4 Call count4() end select %><br><br></td> </tr> </table> <% end sub

sub count1() dim sql,rs,i sql="select theday,thecount*"&mycount(1)&" from countday where theyear="&theyear&" and themonth="&themonth Set Rs=Server.CreateObject("ADODB.Recordset") Rs.open sql,ConnCount,3,2 if Rs.recordcount=0 then setAlert("没有这个月的记录") else %> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <% dim color,countall,rijun countall=0 color="#FF0000" for i =1 to Rs.recordcount %> <td align="center" valign="bottom"><font color="<%= color %>"><%=clng(Rs(1))%></font><br> <img src="plus/count/1.gif" width="10" height="<%=clng(clng(Rs(1))*mycount(2))%>"> <%if color="#FF0000" then color="#0000FF" else color="#FF0000" end if countall=countall+Rs(1) %> <br> <%= Rs(0) %></td> <%rs.movenext next countall=clng(countall) rijun=clng(countall/Rs.recordcount) %> <td align="center" valign="bottom"><font color="<%= color %>"><%=countall%></font><br> <%if color="#FF0000" then color="#0000FF" else color="#FF0000" end if %> <br> 总计</td> <td align="center" valign="bottom"><font color="<%= color %>"><%=rijun%></font><br> <img src="plus/count/1.gif" width="10" height="<%=clng(rijun*mycount(2))%>"> <br> 日均</td> </tr> </table> <% end if end sub

sub count2() dim sql,rs,i,a,b(23),pinjun sql="select thecount from countmonth where theyear="&theyear&" and themonth="&themonth Set Rs=connCount.execute(sql) if rs.eof then setAlert("没有这个月的记录")

a=0 for i=0 to 23 sql="select Sum(thecount)*"&mycount(1)&" from counthour where theyear="&theyear&" and themonth="&themonth&" and thehour="&i set rs=connCount.execute(sql) if rs.eof then b(i)=0 else if rs.eof then b(i)=0 else b(i)=clng(rs(0)) a=a+b(i) end if end if next pinjun=clng(a/24) %> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <% dim color,rijun color="#FF0000" for i =0 to 23 %> <td align="center" valign="bottom"><font color="<%= color %>"><%=clng(b(i))%></font><br> <img src="plus/count/1.gif" width="10" height="<%=clng(b(i)*mycount(3))%>"> <%if color="#FF0000" then color="#0000FF" else color="#FF0000" end if %> <br> <%= i %></td> <% next %> <td align="center" valign="bottom"><font color="<%= color %>"><%=a%></font><br> <%if color="#FF0000" then color="#0000FF" else color="#FF0000" end if %> <br> 总计</td> <td align="center" valign="bottom"><font color="<%= color %>"><%=pinjun%></font><br> <img src="plus/count/1.gif" width="10" height="<%=clng(pinjun*mycount(3))%>"> <br> 平均</td> </tr> </table> <% end sub

sub count3() dim sql,rs,i sql="select thehour,thecount*"&mycount(1)&" from counthour where theyear="&theyear&" and themonth="&themonth&" and theday="&theday Set Rs=Server.CreateObject("ADODB.Recordset") Rs.open sql,ConnCount,3,2 if Rs.recordcount=0 then setAlert("没有这一天的记录") else %> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <% dim color,countall,rijun countall=0 color="#FF0000" for i =1 to Rs.recordcount %> <td align="center" valign="bottom"><font color="<%= color %>"><%=clng(Rs(1))%></font><br> <img src="plus/count/1.gif" width="10" height="<%=clng(clng(Rs(1))*mycount(4))%>"> <%if color="#FF0000" then color="#0000FF" else color="#FF0000" end if countall=countall+Rs(1) %> <br> <%= Rs(0) %></td> <%rs.movenext next countall=clng(countall) rijun=clng(countall/Rs.recordcount) %> <td align="center" valign="bottom"><font color="<%= color %>"><%=countall%></font><br> <%if color="#FF0000" then color="#0000FF" else color="#FF0000" end if %> <br> 总计</td> <td align="center" valign="bottom"><font color="<%= color %>"><%=rijun%></font><br> <img src="plus/count/1.gif" width="10" height="<%=clng(rijun*mycount(4))%>"> <br> 日均</td> </tr> </table> <% end if end sub

sub count4() dim sql,rs,i sql="select top "&mycount(5)&" ip,thetime,language from ip order by thetime desc" Set Rs=Server.CreateObject("ADODB.Recordset") Rs.open sql,ConnCount,3,2 if Rs.recordcount=0 then setAlert("暂时还没有任何记录") else %><table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" class=tableborder1 style="width:500px;"> <tr> <th height="25">&nbsp;</th> <th>IP</th> <th>时间</th> <th>语言</th> </tr><% for i =1 to Rs.recordcount %> <tr align="center"> <td class=tablebody1><%=i %></td> <td class=tablebody1><%= Rs(0) %></td> <td class=tablebody1><%= Rs(1) %></td> <td class=tablebody1><%= Rs(2) %></td> </tr> <%rs.movenext next %> </table>

<% end if end sub %> 谢谢



小林在线 www.xiaolin.co.to

诚意交换友情链接
支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
我最简单
  4楼 个性首页 | 博客 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:高二 主题:80 精华:0 贴子:1037 排名:9684 威望:17 排名:87 注册:2003/11/20 16:10:00 近访:2010/1/17 19:56:52
  发贴心情 Post By:2004/4/19 20:43:00

真是不好意思

帮你调试了半天没看找出错误

不过我的错误和你的不一样

我的是

Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

和你的行数不同

我仔细查了下,这几行没有错误

建议你去CSDN问问

或许会有更多的帮助



      持身涉世,不可随境而迁.须是大火流金而清风穆然,严霜杀物而和气蔼然,阴霾翳空而慧日朗然,洪涛倒海而坻柱屹然,方是宇宙内的真人品.爱是万缘之根,当知割舍.识是众欲之本,要力扫除.作人要脱俗,不可存一矫俗之心;应世要随时,不可起一趋时之念.

<PS:我是流民!>

支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
恐龙
  5楼 个性首页 | 博客 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:宝宝 主题:1 精华:0 贴子:6 排名:0 威望:0 排名:0 注册:2004/1/6 16:11:00 近访:2004/5/10 1:15:00
  发贴心情 Post By:2004/4/21 10:10:00

开心在吗?


小林在线 www.xiaolin.co.to

诚意交换友情链接
支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
41℃-狐
  6楼 个性首页 | 博客 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小六 主题:36 精华:0 贴子:441 排名:0 威望:4 排名:296 注册:2004/4/12 16:06:00 近访:2006/8/9 4:38:50
  发贴心情 Post By:2004/4/22 15:59:00

楼上的,

你的签名网站???????????????



我菜,但我不会放弃!!

情愿为你揽所有的罪受

支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
恐龙
  7楼 个性首页 | 博客 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:宝宝 主题:1 精华:0 贴子:6 排名:0 威望:0 排名:0 注册:2004/1/6 16:11:00 近访:2004/5/10 1:15:00
  发贴心情 Post By:2004/4/23 0:27:00

以下是引用41℃-狐在2004-4-22 15:59:00的发言:

楼上的,

你的签名网站???????????????

怎么了,有问题吗?


小林在线 www.xiaolin.co.to

诚意交换友情链接
支持(0中立(0反对(0回到顶部
帅哥哟,离线,有人找我吗?
41℃-狐
  8楼 个性首页 | 博客 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小六 主题:36 精华:0 贴子:441 排名:0 威望:4 排名:296 注册:2004/4/12 16:06:00 近访:2006/8/9 4:38:50
  发贴心情 Post By:2004/4/23 1:11:00

你的超链接错误,后面多了个引号,呵呵!其它的就没什么了!

而且进入“enter”是乱码!

还行不错



我菜,但我不会放弃!!

情愿为你揽所有的罪受

支持(0中立(0反对(0回到顶部