求求你们回个帖好吗
<%@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 "<span style=color:#990099>"
response.write " "&name&" "
response.write "<img src='"
response.write " "&pic&"'>"
response.write ""
response.write "</span>"
response.write "于"&time&" 说道"
response.write " "&word&" "
response.write "</span>"
response.write "</marquee>"
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
一直只显示一条记录,、谁能和我说要怎么写才可以。
[此贴子已经被作者于2005-7-10 12:40:00编辑过]