问一个asp的问题,运行

来源:百度知道 编辑:UC知道 时间:2024/06/23 15:30:53
Microsoft JET Database Engine error '80040e57'
The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.
/inc/const.asp, line 225
以下是/inc/const.asp的218~2226行的代码
if rs.eof and rs.bof then
ComeFrom=""
actCome=""
sql="insert into online(id,realname,usergroup,ip,startime,lastimebk,browser,stats,actforip,actCome) values ("&statuserid&",'访客','访客','"&Request.ServerVariables("REMOTE_HOST")&"',Now(),Now(),'"&Request.ServerVariables("HTTP_USER_AGENT")&"','"&replace(stats,"'","")&"','"&Request.ServerVariables("HTTP_X_FORWARDED_FOR")&"','"&usergroupimg&"')"
else
sql="update online set lastimebk=Now(),stats='"&replace(stats,"'","")&"' where

问题出在SQL语句上
如果你想过滤或者替换,SQL里是不可以这么写的。
你可以先把变量处理好,然后加进去

方便的话发在线交谈,发代码我看看

在插入时,某个value超出你数据库字段范围了

某个字段小了