日期:2014-05-17  浏览次数:20923 次

看看这段代码的问题在哪?
<%
    set   rs=server.creatobject(adodb.recordset)
    rs.open   "select   *   from   shipin   order   by     id     desc "
  %>
                                  <%
if   rs.eof   and   rs.bof   then
response.write " "
else
response.write   rs( "dh ")
response.write " <br> "
rs.movenext

end   if  
%>

数据库已经打开,但是执行完这这段代码后,表里的数据并没有读出来,不知道怎么做了
谢谢

------解决方案--------------------
<%
if rs.eof and rs.bof then
response.write "没有该记录 "

else
response.write rs( "dh ")& " <br /> "

end if
%>

------解决方案--------------------
set rs=conn.execute( "select * from shipin order by id desc " )