返回列表 发帖
sql="select admin_id,admin_pw from SCOTT.ADMIN where admin_id='"&admin_id&"'"
response.write sql
response.end
  
  
看一下你的SQL语句是什么?
  

TOP

要不你加我QQ:1132077500
我是说用:select admin_id,admin_pw 出这个结果,我试一下网页。

TOP

看一下  #5楼  
  
这样,你可以看到你实际的SQL语句是什么。

TOP

直接在SQLPLUS中试一下。select admin_id,admin_pw from SCOTT.ADMIN  
  
你的表名到底是 SCOTT.TIGER 还是  SCOTT.ADMIN ? 你的scott schema 下有这些表吗?

TOP

连接字符串:connstr="Driver={Oracle in OraHome92};server=MYSW;uid=scott;pwd=tiger;"

TOP

<%@LANGUAGE="VBSCRIPT"%>
  <!--#include file="../common/conn.asp"-->
  <!--#include file="../common/status.html"-->
  <!--#include file="../common/md5.asp"--> <html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <title>管理员登录 </title>
  </head>
  
   <meta http-equiv="refresh" content="5;url=login.html">
  
  <body>
      <%
          dim sql
          sql="select * from scott.admin where admin_id='"&admin_id&"'"
         set rs=Server.CreateObject("ADODB.recordset")
            rs.open sql,connstr
       if rs.eof then
           errmsg=errmsg+" <br>"+" <li>您输入的管理员帐号不存在!"
           founderr=true
        
      
       rs.close
       set rs=nothing
     end if
      
%>
  </body>
  
  </html>
但还是:表或视图不存在。。。。。。。。。。

TOP

<%@LANGUAGE="VBSCRIPT"%>
  <!--#include file="../common/conn.asp"-->
  <!--#include file="../common/status.html"-->
  <!--#include file="../common/md5.asp"--> <html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <title>管理员登录 </title>
  </head>
  
   <meta http-equiv="refresh" content="5;url=login.html">
  
  <body>
      <%
          
           sql="select admin_id,admin_pw from SCOTT.ADMIN  where admin_id='jack'"
           response.write sql  
           response.end  
      
%>
  </body>
  
  </html>
结果是:select admin_id,admin_pw from SCOTT.ADMIN where admin_id=''

TOP

返回列表