以下是引用islet在2005-9-8 17:22:24的发言:
<%
sql=……
rs.open sql,conn,1,1
do while not rs.eof %>
<tr>
<td width="9"><img src="img/dian.jpg" width="9" height="13"></td>
<td width="186"><a href="newsdetail.asp?id=<%=rs("newsid") %>"><%=rs("newsname")%></a></td>
<td width="26"><%if datediff("d",rs("adddate"),date())<5 then%>
<img src="img/index_new.gif" width="28" height="11">
<%end if%></td>
</tr>
<tr><td height="10"></td></tr>
<% rs.movenext
loop
rs.close
我好像明白了,,