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