sql="select * from admin where admin='"&user&"' and password='"&md5(password)&"'" set rs=conn.execute(sql) if rs.eof then Response.Write("<script language=javascript>alert('管理员姓名和密码错误!'); ef=' p';</script>") Response.End就是这句话这里就出错了,在和数据库比对之后出错,可是在2000里可以用的。一点问题都没有,请大虾指点迷津。不胜感激。
热心网友
if rs.eof then%alert('管理员姓名和密码错误!'); ef=' p';<%Response.End这么写
热心网友
换一种执行方式 比如:set rs= eateobject(" cordset") sql="select * from admin where admin='"&user&"' and password='"&md5 (password)&"'"rs.open sql,conn,1,1这种。没库,没调试.不过一种操作数据库的方法不行,换一种试一下吧