asp 产品分类怎么读取小类
<%setrss=server.CreateObject("adodb.recordset")rss.open"select*fromxr_nclasswherencla...
<%
set rss = server.CreateObject ("adodb.recordset")
rss.open "select * from xr_nclass where nclassid='" & rss("anclassid") & "' order by nclassidorder",conn,1,1
if rss.eof and rss.bof then
Response.Write "ddddddddd"
else
j=1
do while not rs.eof
%>
<IMG src="../img/class3.gif" align=absMiddle border=0> <a href="products.asp?lx=small&anid=<%=rss("nclassid")%>&ParentNameddd=<%=rss("nclass")%>"><%=rss("nclass")%></a><BR>
<%
rss.movenext
j=j+1
loop
end if
rss.close
set rss=nothing
%>
</TD>
</TR>
<%
rs.movenext
i=i+1
loop
end if
%> 展开
set rss = server.CreateObject ("adodb.recordset")
rss.open "select * from xr_nclass where nclassid='" & rss("anclassid") & "' order by nclassidorder",conn,1,1
if rss.eof and rss.bof then
Response.Write "ddddddddd"
else
j=1
do while not rs.eof
%>
<IMG src="../img/class3.gif" align=absMiddle border=0> <a href="products.asp?lx=small&anid=<%=rss("nclassid")%>&ParentNameddd=<%=rss("nclass")%>"><%=rss("nclass")%></a><BR>
<%
rss.movenext
j=j+1
loop
end if
rss.close
set rss=nothing
%>
</TD>
</TR>
<%
rs.movenext
i=i+1
loop
end if
%> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询