新人求指教一段ASP代码,谢谢您的帮助!
这是一段带二级分类产品导航的代码:<div id='pdv_16212' class='pdv_class' title='' style='width:218px;height:242px;top:14px;left:0px; z-index:9'>
<div id='spdv_16212' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;background:url(../base/border/780/images/title.jpg) 0px 0px no-repeat">
<div style="height:40px;border:0px;padding:0;margin:0;">
</div>
<div style="margin:0px;padding:0px">
<div class="productclass_dolphin">
<%
dim rse,did
set rse=server.CreateObject("adodb.recordset")
rse.open "select * from shop_fl where sid = 0 order by px_id asc",conn,1,1
while not rse.eof
did = rse("id")
%>
<a href="<%=root%>/products/shopmore.asp?id=<%=rse("id")%>" class="productclass_dolphin"><%=rse("title")%></a>
<%
'产品小类开始
dim rsx,execx
set rsx=server.createobject("adodb.recordset")
execx="select * from shop_fl where sid = "&did&" order by px_id asc"
rsx.open execx,conn,1,1
do while not rsx.eof
%>
<a href="<%=root%>/products/shopmore.asp?id=<%=rsx("id")%>" class="productclass_dolphin2" <%if rse("id")= tt or tt2=rse("id") then response.write "style='DISPLAY'" else response.write "style='DISPLAY: none'" end if%>><%=rsx("title")%></a>
<%
rsx.movenext
loop
'产品小类结束
%>
<%
rse.movenext
wend
rse.close
set rse=nothing
%>
</div>
</div>
</div>
</div>
</div>
其中:
dim rse,did
set rse=server.CreateObject("adodb.recordset")
rse.open "select * from shop_fl where sid = 0 order by px_id asc",conn,1,1
while not rse.eof
did = rse("id")
%>
<a href="<%=root%>/products/shopmore.asp?id=<%=rse("id")%>" class="productclass_dolphin"><%=rse("title")%></a>
<%
这段代码的意思是不是 从数据库shop_fl表中读出ID 然后 生成这段<a href="<%=root%>/products/shopmore.asp?id=<%=rse("id")%>" class="productclass_dolphin"><%=rse("title")%></a>这段代码?
谁能帮我理解下它的意思呀! 谢谢了