错误类型: Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) [Microsoft][ODBC Microsoft Access Driver] FROM 子句语法错误。 /注册系统/注册系统/adduser.asp, 第 37 行 <!--#include file="odbc_conn.asp"--> <%If request.Form("username")="" then%> <Script language="javascript"> alert("用户名不能为空!"); location.href="javascript:history.back()" </Script> <%ElseIf request.Form("psd")="" then%> <Script language="javascript"> alert("密码不能为空!"); location.href="javascript:history.back()" </Script> <%ElseIf request.Form("npsd")="" then%> <Script language="javascript"> alert("确认密码不能为空"); location.href="javascript:history.back()" </Script> <%ElseIf request.Form("psd")<>request.Form("npsd") then%> <Script language="javascript"> alert("确认密码不正确"); location.href="javascript:history.back()" </Script> <%ElseIf request.Form("question")="" then%> <Script language="javascript"> alert("密码提示不能为空"); location.href="javascript:history.back()" </Script> <%ElseIf request.Form("answer")="" then%> <Script language="javascript"> alert("密码回答不能为空"); location.href="javascript:history.back()" </Script> <%else%> <%
Set rs=Server.CreateObject("ADODB.Recordset") sql="select * from table where (id is null)" rs.open sql,db,1,2 rs.addnew rs("username")=request.Form("username") rs("pwd")=request.Form("psd") rs("sex")=request.Form("sex") rs("email")=request.Form("email") rs("question")=reqeust.Form("question") rs("answer")=reqeust.Form("answer") rs("qq")=request.Form("qq") rs("homepage")=request.Form("homepage") If request.Form("year")="" Then rs("birthday")=request.Form("year")&"年"&request.Form("month")&"月"&request.Form("day")&"日" Else rs("birthday")=request.Form("month")&"月"&request.Form("day")&"日" End if rs.update
%> <Script language="javascript"> alert("用户注册成功"); location.href="index.asp" </Script> <%End if%> 我37行也没错呀,“rs.open sql,db,1,2”我把2改成3也没用,怎么搞的,以前好象都没有出现这个问题呢