28,406
社区成员
发帖
与我相关
我的任务
分享<p><font face="宋体"><%
t=0
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="SELECT * from NEWS where bigclassname='" & Server.URLEncode("电脑文档") & "' and tuijian=1 order by id desc"
rs.Open sql,conn,1,1
if not Rs.eof then
do while not rs.eof
t=t+1
%>
</font>
<tr>
<font face="宋体"> <img border="0" src="mother/news1.gif" width="9" height="15"> <a href="dnshow.asp?id=<%=rs("id")%>" title="<%=rs("title")%>" target="_blank"><%=left(rs("title"),14)%></a>
</font>
</tr>
<%
if t>=10 then exit do
rs.movenext
loop
else
response.write "<tr><td align=center colspan=2 bgcolor=#E8E8F4>尚无收录</td></tr>"
end if
rs.close
%>