28,406
社区成员
发帖
与我相关
我的任务
分享<%
small =rsSmallClass("SmallClassName")
if small<>"" then
sqlt = "select count(*),id from news where SmallClassName='" & small&"'"
set rst = server.createobject("adodb.recordset")
rst.open sqlt,conn,1,1
If count==1 then
%>
<A href="show.asp?id=<%=rst("id")%>"><%=rsSmallClass("SmallClassName")%></A>
<% else
response.write "没有记录."
end if
if rst.state<>0 then rst.close
set rst = nothing
else%>
<a href="1otype.asp?classid=<%=rst("bigclassid")%>&boardname=<%=rsSmallClass("SmallClassName")%>">
<%
end if
%>
<%
small =rsSmallClass("SmallClassName")
if small<>"" then
sqlt = "select count(*),id from news where SmallClassName='" & small&"'"
set rst = server.createobject("adodb.recordset")
rst.open sqlt,conn,1,1
If not rst.bof and rst.eof %>
<A href="show.asp?id=<%=rst("id")%>"><%=rsSmallClass("SmallClassName")%></A>
<% else
response.write "没有记录."
end if
if rst.state<>0 then rst.close
set rst = nothing
else%>
<a href="1otype.asp?classid=<%=rst("bigclassid")%>&boardname=<%=rsSmallClass("SmallClassName")%>">
<%
end if
%>