请帮忙解释一下这段asp代码

2025-04-28 19:53:01
推荐回答(2个)
回答1:

<%
sqltopic="select top 9 ID,a125_names,Istopic,topicpic from a125_type where a125_setting=1 and Istopic=true order by a125_order "
set rstopic=server.createobject("adodb.recordset")
rstopic.open sqltopic,conn,1,1
do while not rstopic.eof
%>
是连接并打开数据库的过程









.gif" width="60" height="40">
"><%=rstopic("a125_names")%>


显示ID和A12_names的值里面的格局是 div 和table
<%
rstopic.movenext
loop
if rstopic.eof and rstopic.bof then
response.write ""
end if
%>
游标向下移动 停止IF语句

回答2:

简单的ASP查询数据库,并显示。