?? 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
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -