1
即时连接到数据库和存储数据的注册表单有问题,下面是我得到的错误。ASP错误 - Microsoft JET数据库引擎错误'80040e07'
Microsoft Jet数据库引擎错误条件表达式 '80040e07'
数据类型不匹配。
/mus0280/coursework2/storefuncs.asp,线330
这是一小段代码片段,如果数据类型是在数据库和整个网站同我已经检查了。
' Add New User to Database
sqlString = "INSERT INTO users (" &_
"user_username, " &_
"user_password, " &_
"user_email," &_
"user_address, " &_
"user_city," &_
"user_postcode," &_
"user_cardnumber, " &_
"user_cardtype, " &_
"user_cardexpiremonth," &_
"user_cardexpireyear," &_
"user_cardname," &_
"user_HTML" &_
") VALUES (" &_
" '" & fixQuotes(newusername) & "', " &_
" '" & fixQuotes(newpassword) & "', " &_
" '" & fixQuotes(email) & "', " &_
" '" & fixQuotes(address) & "', " &_
" '" & fixQuotes(city) & "', " &_
" '" & fixQuotes(postcode) & "', " &_
" '" & fixQuotes(cardnumber) & "', " &_
" '" & cardtype & "', " &_
" '" & cardexpiremonth & "', " &_
" '" & cardexpireyear & "', " &_
" '" & fixQuotes(cardname) & "', " &_
" " & html & " " &_
")"
Con.Execute sqlString
- 这是行330
可以打印出字符串,所以我们可以看到它的结局? – Jordan 2012-01-10 21:48:25
嗨,对不起,对于未经编辑的代码,这里是新的,无论如何,我发现问题是在文件夹上写入权限。 – mussi89 2012-01-10 22:10:39
哇,这个问题的一个钝角错误信息是什么? – Jordan 2012-01-10 22:35:37