|
--------aa.asp---------
<script type="text/JavaScript">
function MM_popupMsg(msg,Url) {
if(confirm(msg))
self.location=Url;
}
</script>
<a href="javascript:MM_popupMsg('确定要删除吗?\r','delete_imgfile.asp?id=<%= rs("id")%>"'); >删除</a>
-----------aa_de.asp--------------
<%
dim id,aa
aa=request("vbok")
if aa=1 then
id=request("id")
else if id <> "" then
set rs = server.CreateObject("ADODB.Recordset")
sql="select * from pro_img where id="&id
rs.open sql,conn,1,1
pic_img=rs("p_pic")
sql2 = "delete from pro_img where id="&id
conn.execute sql2
end if
end if
%>
--------------------- |
|