📄 photodel.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="cook.asp"-->
<%
id=cint(request.QueryString("id"))
set rs=server.CreateObject("adodb.recordset")
sql="select * from photo where id="&id
rs.open sql,conn,3,3
photourl=rs("picurl")
if photourl<>"" then
whichfile=Server.MapPath("../"&photourl&"")
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.GetFile(whichfile)
f1.delete
end if
rs.delete
response.Redirect("photo.asp")
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -