高手帮忙!如何首页调出最新新闻。风讯在子目录。
首页调出最新新闻,风讯系统放在子目录下面。遇到栏目无法替换。
<%
set rs=server.createobject("adodb.recordset")
sql="select top 12 * from fs_news order by ID desc"
rs.open sql,conn,1,1
%><%i=0
do while not rs.eof%><TR>
<TD align=left height=24>·<A class=bigs href="http://news.xxxx.com/Html/<%=rs("ClassID")%>/<%=rs("FileName")%>.shtml" target=_blank>
<%=cutstr(rs("title"),30)%></A><BR></TD>
<TD><%=cutstr(rs("AddDate"),10)%></TD></TR>
<%rs.movenext
i=i+1
if i=12 then exit do
loop
rs.close %>
得出来的链接地址:
http://news.xxx.com/Html/054316531696148/104013808.shtml
如何将栏目ID替换啊
还有调出来的日期“2005-10-14...”都带省略号啊