
高手请进来看看这个ASP什么地方错
这个ASP是用来修改数据库的看看什么地方错了<!--#includefile="inc/conn.asp"--><!--#includefile="inc/lib.asp...
这个ASP是用来修改数据库的看看什么地方错了
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/lib.asp"-->
<%
action=GetQueryField("action")
UserNumx=GetQueryInt("UserNumx")
select case action
case "clearbag"
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from [cabal_auth_table] where UserNum="&UserNumx
rs.open sql,conn,1,1
if rs.eof then
end if
conn.execute("update cabal_auth_table set authtype=2 where UserNum="&UserNumx&"")
set rs=nothing
msg2 "封IP号成功","Admin_Account.Asp"
case else
msg3("请不要提交非法参数")
end select
%><!--#include file="inc/close.asp"--> 展开
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/lib.asp"-->
<%
action=GetQueryField("action")
UserNumx=GetQueryInt("UserNumx")
select case action
case "clearbag"
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from [cabal_auth_table] where UserNum="&UserNumx
rs.open sql,conn,1,1
if rs.eof then
end if
conn.execute("update cabal_auth_table set authtype=2 where UserNum="&UserNumx&"")
set rs=nothing
msg2 "封IP号成功","Admin_Account.Asp"
case else
msg3("请不要提交非法参数")
end select
%><!--#include file="inc/close.asp"--> 展开
2个回答
展开全部
GetQueryField GetQueryInt msg2 msg3 这四个是你自定义的函数吧。
conn.execute("update cabal_auth_table set authtype=2 where UserNum="&UserNumx&"") 这个,UserNum是字符还是数字?后面加&""多余了。
Rs没有Close就直接释放了。
action这个值哪里来的?
这个函数中可以出错的地方太多。
conn.execute("update cabal_auth_table set authtype=2 where UserNum="&UserNumx&"") 这个,UserNum是字符还是数字?后面加&""多余了。
Rs没有Close就直接释放了。
action这个值哪里来的?
这个函数中可以出错的地方太多。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询