📄 del_product.asp
字号:
<%@ LANGUAGE="VBSCRIPT" %>
<%
'////////////////////////删除商品///////////////////////////////
if request.cookies("sp_name")="" then
response.redirect "login.asp"
end if
%>
<!--#include file="conn.asp"-->
<!--#include file="pic_conn.asp"-->
<%
dim SQL, Rs, contentID,shop_name1
contentID=request("ID")
shop_name1=request.cookies("sp_name")
'=======================删除商品资料=============================
set rs=server.createobject("adodb.recordset")
sqltext="delete from Product where P_shop='"&shop_name1&"' and Product_Id='"&contentID&"'"
rs.open sqltext,conn,3,3
set rs=nothing
'=======================删除商品图片=============================
set pic_rs=server.createobject("adodb.recordset")
sqltext="delete from pic where pic_id="& contentID
pic_rs.open sqltext,pic_conn,3,3
set pic_rs=nothing
pic_conn.close
%>
<html>
<head>
<title>OK</title>
<meta http-equiv=refresh content="1; url=product_check.asp">
<BODY bgcolor="#ffffff" >
Loading ....
<p align="center">已经成功删除一件商品资料!</p>
<p align="center">二秒钟后系统自动返回</p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -