改了还是一样。
先帮我看看这里有没有错,我自已写的。功能是选取前5个文章。为调试过了,就是显示不出来。
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn.asp"-->
<%dim rs,sql
dim title,id
set rs=server.createobject("adodb.recordset")
sql="select top5 * from article order by time desc"
rs.open sql,conn,3,2
title=rs("title")
id=rs("id")
if rs.eof and rs.bof then
response.write"暂时没有任何内容"
else
response.write "<table>"
do while not rs.eof or rs.bof
response.write "<tr><td>"
response.write "<a href=list.asp?id="&id&">"
response.write "'"&title&"'</a>"
response.write "</td></tr>"
loop
end if
response.write "<a href='more.asp'>"
response.write "更多内容"
response.write "</a>"
response.write "</table>"
%>
总有一天,我要亲手打布什一吧掌.