视觉电生理仪:从字符串转换为 datetime 时发生语法错误。

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/06 00:28:05
大家看看这个怎么写啊?我改了好几天都不行
---------------------------------------------------------
Response.cookies("Dxbbs")="Dxbbs"
response.cookies("Dxbbs")("CookiesAAA")="Dxbbs"
response.cookies("Dxbbs")("CookiesID")=session("vf_UserID")
response.cookies("Dxbbs")("CookiesPass")=userpassword
set rs_update=server.CreateObject("adodb.recordset")
sql_update="update Dxbbs_Reg set User_LoginNum=User_LoginNum+1 where User_Name='"&session("vF_Name")&"'"
rs_update.open sql_update,conn,1,1
sql_update="update Dxbbs_Reg set User_LogIP='"&Request.ServerVariables("REMOTE_ADDR")&"' where User_Name='"&session("vF_Name")&"'"
rs_update.open sql_update,conn,1,1
sql_update="update Dxbbs_Reg set User_LogTime='"&now()&"' where User_Name='"&session("vF_Name")&"'"
rs_update.open sql_update,conn,1,1
rs_log.Update
rs_log.Close------------------这里是36行
set rs_log=nothing
Call Set_Cookies(session("vf_UserID"),userpassword)
response.Redirect("../myhome/index.asp")
错误类型:
Microsoft OLE DB Provider for SQL Server (0x80040E07)
从字符串转换为 datetime 时发生语法错误。
F:\WWW-VOGIM-COM\VISION\../inc/UserLogin.asp, 第 36 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

网页:
POST 83 ??? /vision/book.asp

POST Data:
usr=%CD%F5%D0%C2%BE%FC&psw=2653251&loginform=login&imageField3.x=26&imageField3.y=3

时间:
2006年7月10日, 上午 12:29:50

sql_update="update Dxbbs_Reg set User_LogTime='#"&date()&"#' where User_Name='"&session("vF_Name")&"'"
因为now 有分和秒什么的 所以不可以