📄 questiondel.asp
字号:
<!--#include file="../Include/Config.asp"-->
<%
dim Survey_id,sql,va
Survey_id=request.QueryString("Survey_id")
Question_id=request.QueryString("Question_id")
i=request.QueryString("i")
sql="delete from [Question] where Question_id="&Question_id
conn.execute(sql)
sql="select Survey_content from [Survey] where Survey_id="&Survey_id
rs.open sql,conn,1,3
Survey_content=split(rs("Survey_content"),",")
Survey_content(i)=""
va=""
for i=0 to ubound(Survey_content)
if not Survey_content(i)="" then
if va="" then
va=Survey_content(i)
else
va=va&","&Survey_content(i)
end if
end if
next
rs("Survey_content")=va
rs.update
rs.close
call ShowAlert("删除成功","QuestionList.asp?Survey_id="&Survey_id&"")
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -