紧急求救 马上给分

adventurezl 2003-10-18 11:48:28
有如下的语句
dim insertSQL
insertSQL="insert into CustomerInfo(Sn,Username,Email,Password,Gender,Birthday,Address,HomeTel,MarryStatus,IDType,ID,Work,Income,Education,PostCode,Method,AcceptMail,InfoType) values('"&sn&"','"&username&"','"&email&"','"&password&"','"&gender&"','"&birthday&"','"&homeaddress&"','"&telephone&"','"&marry&"','"&idtype&"','"&id&"','"&work&"','"&income&"','"&education&"','"&postcode&"','"&method&"','"mailaccept"','"&infotype&"')"
conn.Execute insertSQL
Response.redirect "reg_ok.asp"

错误如下:
Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

Microsoft VBScript 编译器错误 错误 '800a0401'

语句未结束

/zhao/reg.asp,行58

insertSQL="insert into CustomerInfo(Sn,Username,Email,Password,Gender,Birthday,Address,HomeTel,MarryStatus,IDType,ID,Work,Income,Education,PostCode,Method,AcceptMail,InfoType) values('"&sn&"','"&username&"','"&email&"','"&password&"','"&gender&"','"&birthday&"','"&homeaddress&"','"&telephone&"','"&marry&"','"&idtype&"','"&id&"','"&work&"','"&income&"','"&education&"','"&postcode&"','"&method&"','"mailaccept"','"&infotype&"') "
--------------------------------------------------------------------------
这是什么原因?
...全文
45 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
adventurezl 2003-10-18
  • 打赏
  • 举报
回复
哈哈
已经知道为什么了
angelheavens 说的完全正确
接分吧
angelheavens 2003-10-18
  • 打赏
  • 举报
回复
(3)mailaccept前加&
angelheavens 2003-10-18
  • 打赏
  • 举报
回复
(1)数据类型是否与数据库字段一致,大小也一致;
(2)是否定义了主键;

28,390

社区成员

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

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