| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 585 人关注过本帖
标题:点击A栏目的内容,却出现C栏目的内容
只看楼主 加入收藏
asbj
Rank: 1
等 级:新手上路
帖 子:54
专家分:0
注 册:2008-5-4
结帖率:78.57%
收藏
 问题点数:0 回复次数:4 
点击A栏目的内容,却出现C栏目的内容
点击A栏目的内容,却出现C栏目的内容,点击C栏目的内容,出现D栏目的内容。没有规律。请问这是怎么回事?

就是点击供应求购信息推荐,出现的是招生培训信息推荐中的内容,就是点击评估房产信息推荐,出来的是家政搬家信息推荐的内容,反正都是乱的。点击招工招聘信息推荐,出来的是错误页面:  
·
ADODB.Field 错误 '80020009'

BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。

/company/sub_company.asp,行 0
 
 
不摘这样说是否讲清楚了。下面是这段代码。

 <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")%>&amp;type=1" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("company"),11)%>&nbsp;<%=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">更多信息&gt;&gt;&gt;</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")%>&amp;type=2" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("company"),11)%>&nbsp;<%=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">更多信息&gt;&gt;&gt;</a></div></td>
              </tr>
          </table></td>
        </tr>
      </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
      
      <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/icon09.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='3' 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")%>&amp;type=3" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("company"),11)%>&nbsp;<%=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="sell6.asp" class="ffbyfont2">更多信息&gt;&gt;&gt;</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/icon11.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='4' 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")%>&amp;type=4" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("company"),11)%>&nbsp;<%=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="sell7.asp" class="ffbyfont2">更多信息&gt;&gt;&gt;</a></div></td>
              </tr>
          </table></td>
        </tr>
      </table>
    <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="22" align="center" valign="middle" class="font" height="23"> <font color="#FF6600"><img src="images/icon03.gif" width="17" height="13"></font></td>
                <td bgcolor="#fff3b5" width="164" align="left" valign="middle" class="font" height="23"><font color="#FF6600">评估房产信息推荐</font></td>
                <td bgcolor="#fff3b5" width="114" 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='5' 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")%>&amp;type=5" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("company"),11)%>&nbsp;<%=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="sell8.asp" class="ffbyfont2">更多信息&gt;&gt;&gt;</a></div></td>
              </tr>
          </table></td>
          <td width="306" height="147" align="left" valign="top"><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/icon08.gif" width="17" height="14"></font></td>
              <td bgcolor="#fff3b5" width="168" align="left" valign="middle" class="font" height="23"><font color="#FF6600"><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='6' 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")%>&amp;type=6" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("company"),11)%>&nbsp;<%=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="sell9.asp" class="ffbyfont2">更多信息&gt;&gt;&gt;</a></div></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table></td>

下面是sub_company.asp代码

<!--#include file=../system/include/config.asp-->
<!--#include file=../share/conn_system.asp-->
<!--#include file=../system/include/function.asp-->
<%
    if request("id")="" then
    response.write "对不起,参数出错了!请重新访问此页!"
    response.end
    end if
%>
<html>
<head>
<title>公司简介</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<style>
 body{ scrollbar-face-color:fd9035; scrollbar-shadow-color:ffffff;  scrollbar-highlight-color:ffffff; scrollbar-3dlight-color:ffffff;  scrollbar-darkshadow-color:ffffff; scrollbar-track-color:ffefd7;  scrollbar-arrow-color:ffffff;}
.yellow_kuan {    border: 3px solid #FFcF00; }</style>
        <%
    dim strSql,rs,i,PageNo
    strSql="select * from [company] where id=" & request("id")
    set rs=Server.CreateObject("ADODB.RecordSet")
    rs.open strSql,conn,3,3
%>

<body bgcolor="#FFcF00" text="#000000" leftmargin="0" topmargin="0">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
  <tr>
    <td width="145"><img src="images/company_r1_c3.gif" width="142" height="28"></td>
    <td width="355" align="right" valign="middle"><img src="images/company_r2_c11.gif" width="140" height="10"></td>
  </tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFF5CE">
  <tr>
    <td background="images/company_r5_c2.gif" width="435"><img src="images/company_r5_c2.gif" width="3" height="1"></td>
    <td background="images/company_r5_c2.gif" width="65"><img src="images/company_r5_c2.gif" width="3" height="1"></td>
  </tr>
  <tr>
    <td height="188" colspan="2" align="left" valign="top">
      <table width="480" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td align="left" height="33" valign="bottom"><B><font color="#FF0000">·</font><%=rs("company")%></b></td>
        </tr>
        <tr>
          <td align="left" height="9" valign="top"><img src="images/company_line.gif" width="475" height="3"></td>
        </tr>
      </table>
      <table width="480" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td width="61" class="font" align="center" valign="middle" height="20"><font color="#FF6600">公司地址:</font></td>
          <td width="244" class="font" height="20"><%=rs("address")%></td>
          <td rowspan="7" class="font" height="20" align="center" valign="middle" width="175">
            <table width="166" border="0" cellspacing="0" cellpadding="0" height="136">
              <tr>
                <td bgcolor="#FFFFFF" align="center" valign="middle" class="yellow_kuan">
                  <%if rs("pic")<>"" then%>
                  <img src="<%=rs("pic")%>" width="166" height="136">
                  <%else%>
                  <span class="font"> 暂无图片</span>
                  <%end if%>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td width="61" class="font" align="center" valign="middle"><font color="#FF6600">联系电话:</font></td>
          <td width="244" class="font"><%=rs("tel")%></td>
        </tr>
        <tr>
          <td width="61" align="center" valign="middle" class="font"><font color="#FF6600">联
            系 人:</font></td>
          <td width="244" class="font"><%=rs("man")%></td>
        </tr>
        <tr>
          <td width="61" align="center" valign="middle" class="font"><font color="#FF6600">传  真:</font></td>
          <td width="244" class="font"><%=rs("fax")%></td>
        </tr>
        <tr>
          <td width="61" align="center" valign="middle" class="font"><font color="#FF6600">邮  编:</font></td>
          <td width="244" class="font"><%=rs("yb")%></td>
        </tr>
        <tr>
          <td width="61" align="right" valign="middle" class="font"><font color="#FF6600">E-mail:</font></td>
          <td width="244" class="font"><%=rs("email")%></td>
        </tr>
        <tr>
          <td width="61" align="center" valign="middle" class="font"><font color="#FF6600">公司网址:</font></td>
          <td width="244" class="font"><%=rs("http")%></td>
        </tr>
      </table>
      <br>
    </td>
  </tr>
  <tr>
    <td background="images/company_r5_c2.gif" width="435"><img src="images/company_r5_c2.gif" width="3" height="1"></td>
    <td background="images/company_r5_c2.gif" width="65"><img src="images/company_r5_c2.gif" width="3" height="1"></td>
  </tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" background="images/company_r11_c2.gif">
  <tr>
    <td height="271" width="5">&nbsp;</td>
    <td height="271" width="480" align="left" valign="top" class="font">
      <table width="482" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="164"><img src="images/company_r7_c4.gif" width="164" height="25"></td>
          <td width="318" background="images/company_r7_c8.gif" align="right" valign="middle"><img src="images/company_r8_c10.gif" width="192" height="18"></td>
        </tr>
      </table>
      <%=rs("bz")%><br>
    </td>
    <td height="271" width="5">&nbsp;</td>
  </tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr align="left" valign="top">
    <td width="10"><img src="images/company_r12_c2.gif" width="13" height="19"></td>
    <td width="490" background="images/company_r12_c5.gif" align="right"><img src="images/company_r12_c12.gif" width="12" height="19"></td>
  </tr>
</table>
<br>
</body>
</html>
<!--#include file=../system/include/foot.asp-->

[ 本帖最后由 asbj 于 2009-10-21 10:00 编辑 ]
搜索更多相关主题的帖子: 栏目 
2009-10-20 21:15
笨笨林
Rank: 6Rank: 6
等 级:贵宾
威 望:21
帖 子:482
专家分:408
注 册:2007-7-28
收藏
得分:0 
不知所云

程序授权说明:http://www./authorization.php  无路难开路难。  帮助别人是快乐的,也只有帮助别人,才能得到别人的帮助。互相帮助,才能共同进步。
2009-10-21 07:58
asbj
Rank: 1
等 级:新手上路
帖 子:54
专家分:0
注 册:2008-5-4
收藏
得分:0 
高手们给我看看,急死了。
2009-10-21 10:30
孤独冷雨
Rank: 10Rank: 10Rank: 10
来 自:安徽滁州
等 级:贵宾
威 望:23
帖 子:1247
专家分:1909
注 册:2007-6-4
收藏
得分:0 
每用完一个RS关闭一下试试!

这里有男女系列成人用品,有时间兄弟们来看一看.
51za.
2009-10-21 10:45
aspic
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
等 级:贵宾
威 望:51
帖 子:2258
专家分:8050
注 册:2008-2-18
收藏
得分:0 
2009-10-21 10:56
快速回复:点击A栏目的内容,却出现C栏目的内容
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.033627 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved