第2个小小小问题
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select top 5 * from myword order by time desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "暂时没有留言"
else
name=rs("name")
pic=rs("pic")
top=rs("top")
word=rs("word")
ip=rs("ip")
do while not rs.eof or rs.bof
response.write "<span style=font-size:9pt;color:red>"
response.write "<marquee direction=up scrollamount=2 height=180>"
response.write "来自 "&ip&" 的"
response.write " "&name&" 于 "&time&" 说道"
response.write " "&word&" "
response.write "</marquee>"
response.write "</span>"
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
为什么只会显示一条记录
[此贴子已经被作者于2005-7-10 14:10:23编辑过]