young woo co. ltd.:在调用数据库中的记录如何在网页两排显示

来源:百度文库 编辑:高考问答 时间:2024/05/06 02:29:39
在调用数据库中的记录如何在网页两排显示
<%
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 width="50%">

<DIV align=center>
<TABLE cellSpacing=1 cellPadding=1 width="21%"
bgColor=#999999 border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff><A
href="http://www.ychl.net/travel/index_sszj_sy.asp?id=368"><img src="upfile/<%=trim(rs4("pic"))%>" width="115" height="66"></A></TD>
</TR></TBODY></TABLE></DIV>
</TD>
<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在两列显示,