Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Database ASP错误-Microsoft JET数据库引擎错误';80040e07';_Database_Asp Classic_Jet - Fatal编程技术网

Database ASP错误-Microsoft JET数据库引擎错误';80040e07';

Database ASP错误-Microsoft JET数据库引擎错误';80040e07';,database,asp-classic,jet,Database,Asp Classic,Jet,我在注册表单连接到数据库并存储数据时遇到问题,下面是我遇到的错误 Microsoft JET数据库引擎错误“80040e07” 条件表达式中的数据类型不匹配 /mus0280/coursework2/storefuncs.asp,第330行 这是代码snipet,我已经检查了数据库和整个网站中的数据类型是否相同 ' Add New User to Database sqlString = "INSERT INTO users ( " &_ "user_username, " &am

我在注册表单连接到数据库并存储数据时遇到问题,下面是我遇到的错误

Microsoft JET数据库引擎错误“80040e07”

条件表达式中的数据类型不匹配

/mus0280/coursework2/storefuncs.asp,第330行

这是代码snipet,我已经检查了数据库和整个网站中的数据类型是否相同

' 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行

你能打印出字符串以便我们看到它的最终结果吗?嗨,很抱歉没有编辑代码,这里是新的,无论如何,我发现问题在于文件夹的写入权限。哇,对于这个问题,多么愚蠢的错误消息啊?@mussi89请解释一下你的修复方法,以便从谷歌找到这个方法的人能够很容易地看到修复方法。
' Try with include single Quote's before and After Html in values (

' 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