一个asp横向循环的问题

来源:百度知道 编辑:UC知道 时间:2024/05/01 20:53:55
我正在做一个新闻网站,要求必须连接数据库的图片横向循环,两行两列的,谢谢哪位大哥大姐帮帮忙~
只有30积分,谢谢帮忙

<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
<%
str2="select top 4 * from M_Content order by ID DESC"
set rs2=server.CreateObject("adodb.recordset")
rs2.open str2,conn,1,1
if rs2.eof then
response.write "暂时没有链接信息!"
else
Do while NOT rs2.EOF %>
<tr>
<% for i=1 to 2
if not rs2.eof then%>
<td align="center" width="50%">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" align="left" valign="middle" bgcolor="#FFFFFF" heig