config.php 漏洞:帮忙看一下ASP

来源:百度文库 编辑:高考问答 时间:2024/05/03 02:07:59
<td width="100%" align="center"><marquee direction="up" scrollamount="1" scrolldelay="10" width="100%"
height="350" onMouseOver="this.stop()" onMouseOut="this.start()">
<%
set rsgg= Server.CreateObject("adodb.recordset")
dim ggsql
ggsql="select top 1 id,name,jj,time from desktop where typeid=72 order by time desc"
rsgg.open ggsql,conn,1,1
%>
<%if (rsgg.bof or rsgg.eof) then%>
欢迎访问金体国际协会网站!
<% else %>
<% do while not rsgg.eof or rsgg.bof %>
<%=rsgg("jj")%> [<%=left(rsgg("time"),9)%>]
<%
rsgg.movenext
loop
rsgg.close
%>
<%end if%>
</marquee></td>
这个程序,单独可以正常运行,为什么加到主页中去,就提示错误类型:
ADODB.Recordset (0x800A0BB9)
/51hair/Default3.asp, 第 84 行

请高手帮忙,谢了!

数据库连接了吗?