ASP数据横排出错大家帮我看看!!!
ASP数据横排出错大家帮我看看!!! <body>
<div align="center">
<table border="1" width="800" id="table508" >
<tr>
<td style="font-size: 13px">
<div align="center">
<table border="0" width="800" id="table509" >
<tr>
<td width="9%" style="font-size: 13px">
<img border="0" src="images/arrow_3.gif" width="15" height="14"></td>
<td width="89%" style="font-size: 13px">
<img border="0" src="images/tjgg.jpg" width="150" height="22"></td>
</tr>
<tr>
<td colspan="2" style="font-size: 13px">
'以下是我要横排的内容:是个表格
<%
n=1
set rs=server.createobject("adodb.recordset")
sql="SELECT top 5 * from (SELECT * from gg where du='推荐' ORDER BY ID DESC)"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write ""
else
while not rs.eof
%>
<table border="0" width="230" id="table510" >
<tr>
<td rowspan="3" width="74" style="font-size: 13px">
<img border="0" src="<%=rs("tupian")%>" width="72" height="110"></td>
<td width="39" style="font-size: 13px">编号:</td>
<td style="font-size: 13px"><%=rs("id")%></td>
</tr>
<tr>
<td width="39" style="font-size: 13px">规格:</td>
<td style="font-size: 13px"><%=rs("guige")%></td>
</tr>
<tr>
<td width="39" style="font-size: 13px">信息:</td>
<td style="font-size: 13px">
<p align="center">
<a href="news.asp" style="text-decoration: none; color: #333">
<img border="0" src="<%=rs("xinxi")%>" width="75" height="25"></a>
</tr><%If n mod 3=0 Then%>
</table>
<%
end if
n=n+1
rs.movenext
wend
rs.close
end if
Set rts=Nothing
%>
'以上是我要横排的内容:是个表格
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>