我该如何删除数据?
sss=LCase(request.servervariables("QUERY_STRING"))
if instr(sss,"select")<>0 or instr(sss,"inster")<>0 or instr(sss,"delete")<>0 or instr(sss,"(")<>0 or instr(sss,"'or")<>0 then
response.write "<BR><BR><center>你的网址不合法"
response.end
end if
在数据库连接文件里面有上面一段代码引入数据库连接文件后
总是提示:你的网址不合法
<%
if Request("action")="delete" then
dataid=Cstr(Request.QueryString("id"))
set rs=server.CreateObject("adodb.recordset")
sql="select * from 表名 where id ="&dataid
sql="update yinxiangorder set flag='0' where id ="&dataid
rs.open sql,conn,1,3
Response.Write(sql)
Response.Write("<script>alert('该条订单信息已经被删除,点击确定返回');location.href='跳转页面地址';</script>")
response.End()
end if
conn.close
set conn=nothing
%>
我该怎么操作?我只要删除一条数据