新闻发布系统的删除新闻代码应该怎么加

来源:百度知道 编辑:UC知道 时间:2024/05/21 21:46:58
<!--#include file="top.asp" -->
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#000000">
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF">
<table width="97%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" colspan="3" align="center" > </td>
</tr>
<tr>
<td width="6%" ></td>
<td width="83%" ></td>
<td width="11%" ></td>
</tr>

<tr valign="bottom">
<td align="center" valign="middle" class="STYLE1" > </td>

新闻列表:
<!--#include file="inc/conn.asp"-->
<%
dim rs,sql
set rs=server.CreateObject("adodb.recordset")
sql="select * from news order by id"
rs.open sql,conn,1
if rs.bof or rs.eof then
response.write" <span class='style8'> 现在没有新网!</span>"
else
do while not rs.eof
%>
<table border="0" cellpadding="0" cellspacing="0" width="265">
<tr>
<td width="50"><%=rs("id")%></td>
<td width="50" align="left"><a href="content.asp?id=<%=rs("id")%>"><%=rs("title")%></a></td>
<