📄 deletephoto.asp
字号:
<!--#include file="conn.asp"-->
<!--#include FILE="upload_5xsoft.asp"-->
<%
if session("adminname")="" then
response.redirect "relogin.asp"
end if
dim upload,file,formName,formPath,iCount,newname
set upload=new upload_5xSoft ''建立上传对象
flag=upload.form("flag")
tmid=upload.form("tmid")
readno=upload.form("readno")
set file=nothing
set upload=nothing ''删除此对象
if flag=1 then
sql1="select * from tbread where tmid="&tmid&" and readno="&readno
set rs1=server.createobject("adodb.recordset")
rs1.open sql1,conn,3,2
rs1("pic")=""
rs1.update
response.redirect "admindatabaseeditread.asp?tmid="&tmid&"&readno="&readno
else
sql="select * from tbtk where tmid="&tmid
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
rs("photo")=""
rs.update
response.redirect "admindatabaseedit.asp?tmid="&tmid
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -