大家好,我是个asp新手,以下程序如何修改?字段名是个变量,谢谢
<!--#includefile="Include/Chk.asp"--><!--#includefile="Include/Conn.asp"--><%arrdel=R...
<!-- #include file="Include/Chk.asp" -->
<!-- #include file="Include/Conn.asp" -->
<%
arrdel=Request("id")
ksname=left(Trim(request("ksname")),7)
conn.execute ("update stu set "&ksname&"="0" where id in ("&arrdel&")")
response.write"<SCRIPT language=JavaScript>alert('重置成功!');document.location.href('cj_index.asp');</script>"
response.end
%> 展开
<!-- #include file="Include/Conn.asp" -->
<%
arrdel=Request("id")
ksname=left(Trim(request("ksname")),7)
conn.execute ("update stu set "&ksname&"="0" where id in ("&arrdel&")")
response.write"<SCRIPT language=JavaScript>alert('重置成功!');document.location.href('cj_index.asp');</script>"
response.end
%> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询