出现了这样的问题怎么办啊?

hzauer110 2004-11-21 08:48:35
Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open"database"
Set rs = Server.CreateObject("ADODB.Recordset")
SQLstr="select * from invin where id = "& cint(request("id"))
rs.open sqlstr,conn,1,3

我在ID的输入框中输入了123456789,就这样了.出现了这样的问题怎么办啊?

技术信息(用于支持人员)

错误类型:
Microsoft VBScript 运行时错误 (0x800A0006)
溢出: 'cint'
/mainsystem/logistics/inv/in/index_logistics_inv_in_02_01.asp, 第 20 行


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

网页:
POST 32 ??? /mainsystem/logistics/inv/in/index_logistics_inv_in_02_01.asp

POST Data:
id=1222222222&B1=%B2%E9+++%D5%D2
...全文
91 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zc2cm 2004-11-21
  • 打赏
  • 举报
回复
如果ID是数字直接用
SQLstr="select * from invin where id = "& request("id")
另外一个你试试
SQLstr="select * from invin where id = "& Clng("id")
-----------------
因Cint()范围比较小 ,所以用CLNG好点


777dragon 2004-11-21
  • 打赏
  • 举报
回复
id什么型?

CInt(expression)
若~expression 在 Integer 子类型可接受的范围之外,则发生错误。
孟子E章 2004-11-21
  • 打赏
  • 举报
回复
SQLstr="select * from invin where id = "& request("id")

进行转换是多余的
angelyujun 2004-11-21
  • 打赏
  • 举报
回复
clng(request("id"))

28,391

社区成员

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

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