当前位置:编程学习 > asp >>

怎么解决?Microsoft JET Database Engine '80040e14' FROM 这部分乱吗 \chuli.asp, line 7

<!--#include file="conn.asp"--> <% dim strname,strpwd strname=request.form("yhm") strpwd=request.form("mm") dim rs set rs=conn.execute("select * from user where nikename='"&strname&"' and password='"&strpwd&"'") %> <% do while not rs.eof info=true rs.movenext loop %> <% if info=true then response.redirect "登陆成功" else response.redirect "index.asp" end if %>
答案:两个疑点:
(1)触犯了系统保留字
set rs=conn.execute("select * from user where nikename='"&strname&"' and password='"&strpwd&"'")
在这句中,表user是系统保留字,把语句中的user改成[user]试试
(2)nikename是否想表达“昵称”的意思?昵称的正确写法是nickname。检查一下相关的字段名是否确定是nikename。

上一个:我买了一个ASP的程序,一个文件夹,程序没问题,数据库我用SQL2005连接好了,IIS也设置好了,就是连不上?
下一个:ASP的网页文件夹做好了,IIS也设置好了,数据库也连好了,怎么就是打不开网页

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,