ܶѷӳmoreòŪṩһϢвĻں..

<!--#include file="conn.asp"-->

conn.aspѹǰ̨òе
Լվconn.asp
޸Լվconn

<%
 dim title
 title=request("classname")
 if title="" then
 response.Redirect("default.asp")
 end if
%>

дǰ,ݿ

 <%
 n=request("n")
 if n="" then
 n=30
 end if
%>


<%
if title<>"" then
sql="select * from NEWS where bigclassname='"&title&"' order by time desc"
set rs=conn.execute(sql)
do while not rs.eof%>
                          <img src="images/topic_no_new.gif" width="18" height="18"><a href="show.asp?bh=<%=rs("bh")%>">//ʾűʱ
                          <%response.write(""&rs("title")&"")%>
                            </a><%=rs("time")%>
                        <%response.Write("<br>")%>
                          <% n=n-1
 if n<1 then exit do
 rs.movenext
 loop
 rs.close
 set rs=nothing
 end if
%>

,ݿʾţȻʾӵַͿ.

Щдķasp棬fenlei_news.asp

ҳmoreҪдfenlei_news.asp?classname=(ʾķmoreϢ)

ͿԹۿmore.
