还是不懂代码能详细点吗
这是我的代码
<%
exec="select top 6 * from web_news order by id desc "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<%
if rs.eof and rs.bof then
response.write("暂时没有数据")
else
do while not rs.eof
%>
<table width="100%" border="3" cellpadding="4" cellspacing="4">
<tr>
<th width="65%" scope="row">下载排行榜</th>
<td width="35%">浏览次数</td>
</tr>
<tr>
<th scope="row"><a href="http://sjzfls. target="_blank"><%=trim(rs("nTitle"))%><font color="#8F8F8F">日期:</font><%=trim(rs("nTime"))%></a></th>
<td><div align="center"><%=trim(rs("nHits"))%>次</div></td>
</tr>
</table>
<%
rs.movenext
loop
end if
%>
这是我的代码
<%
exec="select top 6 * from web_news order by id desc "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<%
if rs.eof and rs.bof then
response.write("暂时没有数据")
else
do while not rs.eof
%>
<table width="100%" border="3" cellpadding="4" cellspacing="4">
<tr>
<th width="65%" scope="row">下载排行榜</th>
<td width="35%">浏览次数</td>
</tr>
<tr>
<th scope="row"><a href="http://sjzfls. target="_blank"><%=trim(rs("nTitle"))%><font color="#8F8F8F">日期:</font><%=trim(rs("nTime"))%></a></th>
<td><div align="center"><%=trim(rs("nHits"))%>次</div></td>
</tr>
</table>
<%
rs.movenext
loop
end if
%>