一段ASP链接mssql数据库报错,求大神看看,

[复制链接]
查看11 | 回复2 | 2022-1-21 10:33:58 | 显示全部楼层 |阅读模式
,[,],{,},/,\,;,:," & Chr(34) & "," & Chr(0) & ",--,and,exec,insert,select,delete,update,count,*,%,chr,mid,master,truncate,char,declare"
arrBadChar = Split(strBadChar, ",")
tempChar = strChar
For i = 0 To UBound(arrBadChar)
tempChar = Replace(tempChar, arrBadChar(i), "")
Next
tempChar = Replace(tempChar, "@@", "@")
Restr = trim(tempChar)
End Function






Set rs = Server.CreateObject("ADODB.Recordset")

Set conn=Server.CreateObject("ADODB.Connection")

conn.Open Application("FreeHostDBlink")



xunweb.xunwebPages stype,typeid,conn,rs,skey



if not rs.eof then

dim typenames





dim pageid,maxperpage,mpage,totalput,wn



if trim(request("pageid"))"" then pageid = cint(request("pageid")) else pageid = 1

if pageid = "" or pageid = [url=]" & rs("webTname") & "[/url]"

elseif stype = "2" then

typenames = "按照应用分类 > [url=]" & rs("proTname") & "[/url]"

end if

if skey"" then

typenames = typenames & "
搜索关键词(" & skey &")
"

end if

end if




if stype = "" then stype = "0"

if typeid = "" then typeid = "0"




%>
报错字段 红色标记
错误代码
Microsoft VBScript 运行时错误 错误 '800a01a8'
缺少对象: ''
/website.asp,行 141数据库
回复

使用道具 举报

千问 | 2022-1-21 10:33:58 | 显示全部楼层
表示只会html的路过来自: iPhone客户端
回复

使用道具 举报

千问 | 2022-1-21 10:33:58 | 显示全部楼层
楼主这是想把星外的phpweb插件单独安装?
在页头指定Application("FreeHostDBlink")
或在Global.asa中指定Application("FreeHostDBlink")
Application("FreeHostDBlink")="provider=sqloledb.1

ersist Security Info=false;data source=数据库IP;User ID=数据库用户名;pwd=数据库用户名密码;Initial Catalog=数据库名"
然后第141行才能conn.Open Application("FreeHostDBlink")
另外楼主的这套是xunwang的需要绑定dll才能运行的非开源版 部分核心源代码写进了dll
本人写了一套开源版500元/套 见左侧qq
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行