goods_del.asp
来自「校园二手交易系统,具有完备的后台操作以及应用功能!」· ASP 代码 · 共 26 行
ASP
26 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Inc/AdminChk.asp"-->
<!--#include file="Conn.asp"-->
<%
Set rs=Server.CreateObject("Adodb.Recordset")
sql = "select * from goods_info where goods_id="&request("goods_id")&""
rs.open sql,conn,1,3
if not rs.eof or rs.bof then
if rs("goods_pic")<>"" then
tempfpath="../"&rs("goods_pic")
FiLePaTh = Server.MapPath(tempfpath)
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile(FiLePaTh)
set fso=nothing
end if
conn.execute("delete * from goods_info where goods_id="&request("goods_id")&"")
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
response.redirect("goods_list.asp")
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?