阿曼入境:能看懂意思的告诉我怎么做,谢谢 关于层调用数据库排列的问题

来源:百度文库 编辑:高校问答 时间:2024/04/29 01:24:27
<div>
<%
dim rs,sqltext,j
set rs=server.createobject("adodb.recordset")
sqltext="select top 8 * from SmallClass where BigClassName='" & rsBigClass("BigClassName") & "' order by SmallClassID"
rs.open sqltext,conn,1,1
if rs.eof and rs.bof then
Response.Write "没有小分类"
else
j=1
do while not rs.eof
%>
<a href="Product.asp?BigClassName=<%=rs("BigClassName")%>&Smallclassname=<%=rs("SmallClassName")%>"><%=rs("SmallClassName")%></a>
<%
if j mod 8 <>0 then
end if
if j mod 8 =0 then
Response.Write "</li>"
end if
rs.movenext
j=j+1
Loop
end if
rs.close
set rs=nothing
%>
</div>

对数据库求余数 排积分规则序 不知道你问的是不是这个.