在线 登陆验证时出现错误.

Aioys 2007-07-26 09:06:53
IE显示错误为:
Microsoft JET Database Engine (0x80040E07)
标准表达式中数据类型不匹配。
/shopping/checklogin.asp, 第 16 行

第16行是两个******之间的.....谢谢

我的代码:
<%
xm=request("xm")
password=request("password")
strSql="select * from xinxi where xm='"&xm&"' and password='"&password&"' "
set rs=Server.CreateObject("ADODB.RecordSet")
**************************************************************************
rs.open strSql,conn,3,3
**********************************************************************
if rs.eof then
Response.Redirect "error.htm"
else
session("xxid")=rs("xxid")
session("xm")=rs("xm")
session("power")=rs("power")
Response.Redirect "liulan1.asp"
end if

conn.close()
set conn=nothing
%>
...全文
118 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
hunfeiposan 2007-07-26
  • 打赏
  • 举报
回复
ACCESE数据库 的 字符串 和 SQL数据库的 字符串 是有区别的
Aioys 2007-07-26
  • 打赏
  • 举报
回复
楼上的你的不对吧?解释下撒
hunfeiposan 2007-07-26
  • 打赏
  • 举报
回复
strSql="select * from xinxi where xm="&xm&" and password="&password
Aioys 2007-07-26
  • 打赏
  • 举报
回复
但另外一个网站 数据库模式和我一样.. 它的可以输入数字

为什么我的不行 输入汉字就正常显示了!
Aioys 2007-07-26
  • 打赏
  • 举报
回复
...xm是文本 password是 数字
...错了 我输入的xm都是数字...
Aioys 2007-07-26
  • 打赏
  • 举报
回复
我用的access数据库 在哪检查他们的数据类型 在哪修改...?
kevinsum 2007-07-26
  • 打赏
  • 举报
回复
xm 和 password 数据库里什么类型?

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧