www.gusucode.com > asp+SQLServer网上书店系统设计(源代码+论文) > asp+SQLServer网上书店系统设计(源代码+论文)\网上书店asp+SQLServer\网上书店\new.asp
<!--#include file="conn.asp"--> <% set rs=server.createobject("adodb.recordset") cn_str="select top 4 * from news order by news_date desc" rs.open cn_str,cn,1,1 i=1 %> <html> <head> <title>书店的最新动态</title> </head> <body bgcolor="#b4aed2"> <%while not rs.eof %> <h5><%=i%>.<%=rs("content")%></h5> <% rs.movenext i=i+1 wend rs.close %> </body> </html>