ASP删除记录
<!--#includefile="conn.asp"--><%setrs=Server.CreateObject("ADODB.Recordset")sql="sele...
<!--#include file="conn.asp" -->
<%
set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from site"
rs.open sql,conn,1,3
%>
<table border=1 width=770>
<tr>
<td align=center>名称</td>
<td align=center>地址</td>
<td align=center>说明</td>
<td align=center>操作</td>
</tr>
<%do while not rs.eof%>
<%
sitename=rs("sitename")
siteurl=rs("siteurl")
sitesay=rs("sitesay")
%>
<tr>
<%id=rs("id")%>
<td align=center><%=sitename%></td>
<td align=center><%=siteurl%></td>
<td align=center><%=sitesay%></td>
<td align=center><a href="linkdel.asp?=<%=id%>">删除</a></td>
</tr>
<%
rs.movenext
loop
%></table>
________________________________________________________________
<!--#include file="conn.asp" -->
<%
set rs = Server.CreateObject("ADODB.Recordset")
conn.execute "delete site where id="&trim(request.querystring("id"))
response.redirect "linkmanage.asp"
%>
怎么回事 展开
<%
set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from site"
rs.open sql,conn,1,3
%>
<table border=1 width=770>
<tr>
<td align=center>名称</td>
<td align=center>地址</td>
<td align=center>说明</td>
<td align=center>操作</td>
</tr>
<%do while not rs.eof%>
<%
sitename=rs("sitename")
siteurl=rs("siteurl")
sitesay=rs("sitesay")
%>
<tr>
<%id=rs("id")%>
<td align=center><%=sitename%></td>
<td align=center><%=siteurl%></td>
<td align=center><%=sitesay%></td>
<td align=center><a href="linkdel.asp?=<%=id%>">删除</a></td>
</tr>
<%
rs.movenext
loop
%></table>
________________________________________________________________
<!--#include file="conn.asp" -->
<%
set rs = Server.CreateObject("ADODB.Recordset")
conn.execute "delete site where id="&trim(request.querystring("id"))
response.redirect "linkmanage.asp"
%>
怎么回事 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询