手工制作金箍棒:在调用数据库中的记录如何在网页两排显示 ??

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/02 04:23:11
在调用数据库中的记录如何在网页两排显示
<%
SQL1="Select * From ss where nclass='旅游影集' order by id desc"
Set rs4=Server.CreateObject("ADODB.RecordSet")
rs4.open SQL1,conn,1,1
do while not rs4.eof
%>
<tr><td><FONT color=#333333>·<a class="dao6" href="productshow.asp?id=<%=trim(rs4("id"))%>&uppage=<%=ThisPage%>" target="_blank"><%=rs4("ntitle")%> >)</a></FONT></td></tr>
<%
rs4.movenext()
i=i+1
if i=17 then exit do
loop

rs4.close
%>
让数据库中的字段ntitle在两列显示,