一个点击连接出现的问题,急需解决!!!!!
网址:http://www.yunzihuawu.com/exchange/
我点击一个连接的时候就报一下错:
Microsoft OLE DB Provider for ODBC Drivers error '80040e21 '
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
/exchange/showgoods.asp, line 12
请帮我解决一下:
我的conn.asp内容:
<%
strconnection= "driver={mysql odbc 3.51 driver};database=yunzihua_osc_56;server=localhost;uid=yunzihua_guo;password=123456 "
'无需配置dsn
set conn = server.createobject( "adodb.connection ")
conn.open strconnection
%>
showgoods.asp 相关内容
<!--#include file= "inc/style.asp "-->
<!--#include file= "inc/conn.asp "-->
<title> <%=webname%> </title> <body topmargin= "0 " >
<!--#include file= "head.asp "-->
<%
id=request.querystring( "id ")
set rs=server.createobject( "adodb.recordset ")
sql= "select * from goods where id= "&id
rs.open sql,conn,2,2
hits=rs( "hits ")
rs( "hits ")=hits+1
rs.update //第12行
subid=rs( "subid ")
fuid=rs( "fuid ")
急呀!!!
------解决方案--------------------出现lz所说的这种情况,通常2种原因,1个是想要更新一个自动增长的字段,另一个就是有可能
是数据类型不匹配,譬如说你用string来更新一个bool什么的