有没有遇到这种情况的?怎么修改?
网站首页上登录的几条信息表面上显示正常,但是点击它们,却只显示第一条的内容。请高手们诊断一下。下面是index.asp的部分代码:
<table width="615" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="309" valign="top" height="166" align="left"><table width="300" border="0" cellspacing="0" cellpadding="0" class="xu_kuan">
<tr>
<td bgcolor="#fff3b5" width="23" align="center" valign="middle" class="font" height="23"><font color="#FF6600"><img src="images/icon07.gif" width="14" height="13"></font></td>
<td bgcolor="#fff3b5" width="168" align="left" valign="middle" class="font" height="23"><font color="#FF6600">招工招聘信息推荐</font></td>
<td bgcolor="#fff3b5" width="118" align="left" valign="middle" class="font" height="23"><img src="images/index_r34_c20.gif" width="108" height="15"></td>
</tr>
</table>
<%
strSql="select top 5 * from company where type='1' order by id desc"
set rs=Server.CreateObject("ADODB.RecordSet")
rs.open strSql,conn,3,3
%>
<%do while not rs.eof%>
<font color="#FF6600">·</font><a href="company/sub_company.asp?id=<%=rs("id")%>&type=1" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("company"),11)%> <%=rs("tel")%></font></a>
<%
rs.movenext
if not rs.eof then
response.write "<br>"
end if
loop%>
<table width="299" border="0">
<tr>
<td width="293"><div align="right"><img src="images/index_r20_c15.gif" width="131" height="3"><br>
<a href="sell1.asp" class="ffbyfont2">更多信息>>></a></div></td>
</tr>
</table></td>
<td width="306" height="147" align="left" valign="top"><table width="305" border="0" cellspacing="0" cellpadding="0" class="xu_kuan">
<tr>
<td bgcolor="#fff3b5" width="23" align="center" valign="middle" class="font" height="23"><font color="#FF6600"><img src="images/icon15.gif" width="12" height="12"></font></td>
<td bgcolor="#fff3b5" width="168" align="left" valign="middle" class="font" height="23"><font color="#FF6600">供应求购信息推荐</font></td>
<td bgcolor="#fff3b5" width="118" align="left" valign="middle" class="font" height="23"><img src="images/index_r34_c20.gif" width="108" height="15"></td>
</tr>
</table>
<%
strSql="select top 5 * from company where type='2' order by id desc"
set rs=Server.CreateObject("ADODB.RecordSet")
rs.open strSql,conn,3,3
%>
<%do while not rs.eof%>
<font color="#FF6600">·</font><a href="company/sub_company.asp?id=<%=rs("id")%>&type=2" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("company"),11)%> <%=rs("tel")%></font></a>
<%
rs.movenext
if not rs.eof then
response.write "<br>"
end if
loop%>
<table width="299" border="0">
<tr>
<td width="293"><div align="right"><img src="images/index_r20_c15.gif" width="131" height="3"><br>
<a href="sell5.asp" class="ffbyfont2">更多信息>>></a></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>