这代码有问题吗?应该怎么修改?谢谢!

来源:百度知道 编辑:UC知道 时间:2024/06/30 00:35:13
<%
dim Sqlb,rsb
Sqlb="Select * From article order by id desc"
SET rsb=db.Execute(Sqlb)
If Not rsb.Bof And Not rsb.Eof Then
%>
<table width="774" border="0" cellpadding="0" cellspacing="0">

<tr>
<td width="100" class="style4"><div align="center">文章列表:</div></td>
<td width="659" rowspan="3"><iframe height="300" width="640" name="new" frameborder="0"></iframe></td>
</tr>
<%
Do While Not rsb.Eof
%>
<tr>
<td width="100"><a href="new.asp?id=<%=rsb("id")%>" target="new"><%=rsb("title")%></a>&l

下面是new.asp的代码
<!--#Include file="odbc_connection.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<%
id=request("id")
dim Sqlb,rsb
Sqlb="Select id,title,body From article where id="&id '取对应ID的文章
Sqlb=Sqlb & " Order By id desc"
SET rsb=db.Execute(Sqlb)
%>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="20"><div align="center"><%=rsb("title")%></div></td>
<br>
</tr>