现在显示的是三行一列,怎么写成两行三列,以下是代码。请高手帮忙!谢谢!!!
<%
t=0
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="Select* from Product order by id desc"
rs.Open sql,conn,1,1
if not Rs.eof then
do while not rs.eof
t=t+1
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<td align="center"><a href="drslt4.ASP.htm" tppabs="drslt4.ASP" target="_blank"><img src="<%=rs("UploadFiles")%>" alt="" width="213" height="285" border="0"></a></td>
</tr>
<tr>
<td height="28" align="center"><a href="drslt4.ASP.htm" tppabs="drslt4.ASP" target="_blank"><%=left(rs("title"),19)%> </a></td>
</tr>
</table>
<%
if t>=3 then exit do
rs.movenext
loop
else
response.write "<tr><td align=center colspan=2 bgcolor=#E8E8F4>尚无收录</td></tr>"
end if
rs.close
%>