del.asp

来自「房屋中介网源代码」· ASP 代码 · 共 41 行

ASP
41
字号
<!--#include file="conn.asp"-->

<%

id=request.QueryString("id")
sql="select * from fangyuan where fw_uid='"& Session("uid")& "' and id="&id

set xgai=conn.execute (sql)
if xgai.eof then
response.Write("你不能删除这条记录!")
else






conn.execute ("delete from fangyuan where id="&id)


%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改成功</title>
</head>

<body>
<table width="500" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr> 
    <td width="486" height="26"> <div align="center"><strong><font color="#FF0000" size="5">恭喜您 
        删除成功!</font></strong></div></td>
  </tr>
</table>
<p align="center">
  <input type="button" name="Submit3" value="返回" onClick="window.location='myziliao.asp'" style="font-size: 9pt; border: 1px solid #7D85A2; background-color: #CBE6A8">
</p>
</body>
</html>
<% end if %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?