经典论坛's Archiver

kevinfsz 发表于 2008-7-4 10:07

求救:至少一个参数没有被指定值

<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="22" background="../images/t_bg1.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="17%" height="16" valign="middle"><div align="center"><img src="../images/l_t.gif" alt=" " width="9" height="11" align="absmiddle"></div></td>
              <td width="58%" height="16" valign="middle" class="st12bai">推荐企业</td>
              <td width="25%" height="16" valign="middle" class="st12bai"><div align="center"><a href="#"><img src="../images/more.gif" alt="查看更多……" width="37" height="11" border="0"></a></div></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#0368CD">
            <tr>
              <td height="210" bgcolor="#FFFFFF">
                          
<div align=center>
  <div id=rolllink  style="OVERFLOW: hidden; WIDTH: 600px; HEIGHT: 200px">
    <div id=rolllink1>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr>
          <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<%
''推荐信息
dim rs_tj,sql
set rs_tj=server.createobject("adodb.recordset")
        sql="select top 8 * from [Msn_zn] where msn_name='企业新闻 smt动态 展会信息' and tj=true order by msn_addtime desc"
        rs_tj.open sql,conn,1,1
        if rs_tj.eof and rs_tj.bof then %>
          
                   <tr>
                <td><img src="../images/dot1.gif" alt="企业新闻 smt动态 展会信息" width="8" height="8" />暂时没有相关信息</td>
              </tr>
<%
else
do while not rs_tj.eof
%>               
<tr>
                <td><img src="../images/dot1.gif" alt="推荐企业" width="8" height="8" /> <a href="show.asp?class_other=<%=rs_tj("Msn_name")%>&pid=<%=rs_tj("msnid")%>" class="st12hei"><%=rs_tj("msn_title")%></a></td>
              </tr>
<%
rs_tj.movenext
loop
rs_tj.close
set rs_tj=nothing
end if
%>



          </table></td>
        </tr>
      </table>
    </div>
</div>
</div>                          </td>
            </tr>
          </table>
                  
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="10"></td>
              </tr>
            </table></td>
        </tr>
      </table>

kuhanzhu 发表于 2008-7-4 10:35

检查这一句: sql="select top 8 * from [Msn_zn] where msn_name='企业新闻 smt动态 展会信息' and tj=true order by msn_addtime desc"

建议将中文字弄到一变量中,然后仔细检查字段以及内容是否对应等问题。

kevinfsz 发表于 2008-7-4 11:04

非常感激

非常感激!

playboy2925 发表于 2008-7-4 12:22

至少一个参数没有被指定值

想样子是ACCESS数据库吧。

最常见的应该是有个字段打错字了

页: [1]



Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.