错误类型:
Microsoft JET Database Engine (0x80040E14)
查询值的数目与目标字段中的数目不同。
/addjl.asp, 第 43 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Alexa Toolbar)
网页:
POST 608 ??? /addjl.asp
POST Data:
zsxm=1&xb=1&bmxm=2&sfzh=456878811130123&csrq=1978-8-18&mz=001+++++&gj=000+++++&sg=232&tz=50&hf=0&jg=09++++++&hkszd=09++++++&mqszd=09++++++&lxdh=1231&txdz=&yzbm=&jtdh=&sjhm=&bphm=&email=&grzy=&oicq=&zg . . .
9 个解决方案
#1
代码又不贴出来怎么给你搞啊
#2
代码呢!
#3
这是代码:
<%
filepath=server.mappath("jianli.mdb")
set cnn=server.createobject("adodb.connection")
cnn.open "provider=microsoft.jet.oledb.4.0;data source=" & filepath
tmpzsxm=request.form("zsxm")
tmpzsxm=request.form("cfmm")
cnn.execute "Insert into jlb(jl_zsxm,jl_xb,jl_sfzh,jl_csrq,jl_mz,jl_sg,jl_tz,jl_hf,jl_jg,jl_mqszd,jl_lxdh,jl_txdz,jl_yzbm,jl_jtdh,jl_sjhm,jl_email,jl_zgxl,jl_byyx,jl_byrqn,jl_sxzylb,jl_sxzymc,jl_dezylb,jl_dezymc,jl_yyyz,jl_yysp,jl_zzmm,jl_rclx,jl_qzlx,jl_gznx,jl_zc,jl_jtzc,jl_yxyq,jl_dzrq,jl_gzjl,jl_nljzc,jl_yhm,jl_mm,jl_cfmm)values('" & tmpzsxm & "','" & tmpxb & "', '" & tmpsfzh & "','" & tmpcsrq & "','" & tmpmz & "','" & tmpsg & "','" & tmptz & "','" & tmphf & "','" & tmpjg & "','" & tmpmqszd & "','" & tmplxdh & "','" & tmptxdz & "','" & tmpyzbm & "','" & tmpjtdh & "','" & tmpsjhm & "','" & tmpemail & "','" & tmpzgxl & "','" & tmpbyyx & "','" & tmpbyrqn & "','" & tmpsxzylb & "','" & tmpsxzymc & "','" & tmpdezylb & "','" & tmpdezymc & "','" & tmpdezymc & "','" & tmpyyyz & "','" & tmpyysp & "','" & tmpzzmm & "','" & tmperclx & "','" & tmpqzlx & "','" & tmpgznx & "','" & tmpzc & "','" & tmpjtzc & "','" & tmpyxyq & "','" & tmpdzrq & "','" & tmpgzjl & "','" & tmpnljzc & "','" & tmpyhm & "','" & tmpmm & "','" & tmpcfmm & "')"
cnn.close
response.redirect("showjl.asp")
%>
<%
filepath=server.mappath("jianli.mdb")
set cnn=server.createobject("adodb.connection")
cnn.open "provider=microsoft.jet.oledb.4.0;data source=" & filepath
tmpzsxm=request.form("zsxm")
tmpzsxm=request.form("cfmm")
cnn.execute "Insert into jlb(jl_zsxm,jl_xb,jl_sfzh,jl_csrq,jl_mz,jl_sg,jl_tz,jl_hf,jl_jg,jl_mqszd,jl_lxdh,jl_txdz,jl_yzbm,jl_jtdh,jl_sjhm,jl_email,jl_zgxl,jl_byyx,jl_byrqn,jl_sxzylb,jl_sxzymc,jl_dezylb,jl_dezymc,jl_yyyz,jl_yysp,jl_zzmm,jl_rclx,jl_qzlx,jl_gznx,jl_zc,jl_jtzc,jl_yxyq,jl_dzrq,jl_gzjl,jl_nljzc,jl_yhm,jl_mm,jl_cfmm)values('" & tmpzsxm & "','" & tmpxb & "', '" & tmpsfzh & "','" & tmpcsrq & "','" & tmpmz & "','" & tmpsg & "','" & tmptz & "','" & tmphf & "','" & tmpjg & "','" & tmpmqszd & "','" & tmplxdh & "','" & tmptxdz & "','" & tmpyzbm & "','" & tmpjtdh & "','" & tmpsjhm & "','" & tmpemail & "','" & tmpzgxl & "','" & tmpbyyx & "','" & tmpbyrqn & "','" & tmpsxzylb & "','" & tmpsxzymc & "','" & tmpdezylb & "','" & tmpdezymc & "','" & tmpdezymc & "','" & tmpyyyz & "','" & tmpyysp & "','" & tmpzzmm & "','" & tmperclx & "','" & tmpqzlx & "','" & tmpgznx & "','" & tmpzc & "','" & tmpjtzc & "','" & tmpyxyq & "','" & tmpdzrq & "','" & tmpgzjl & "','" & tmpnljzc & "','" & tmpyhm & "','" & tmpmm & "','" & tmpcfmm & "')"
cnn.close
response.redirect("showjl.asp")
%>
#4
字段少了一个 或者value多了一个
#5
看这个吧
<%
filepath=server.mappath("jianli.mdb")
set cnn=server.createobject("adodb.connection")
cnn.open "provider=microsoft.jet.oledb.4.0;data source=" & filepath
tmpzsxm=request.form("zsxm")
tmpzsxm=request.form("cfmm")
cnn.execute "Insert into jlb(jl_zsxm,jl_cfmm)values('" & tmpzsxm & "','" & tmpcfmm & "')"
cnn.close
response.redirect("showjl.asp")
%>
<%
filepath=server.mappath("jianli.mdb")
set cnn=server.createobject("adodb.connection")
cnn.open "provider=microsoft.jet.oledb.4.0;data source=" & filepath
tmpzsxm=request.form("zsxm")
tmpzsxm=request.form("cfmm")
cnn.execute "Insert into jlb(jl_zsxm,jl_cfmm)values('" & tmpzsxm & "','" & tmpcfmm & "')"
cnn.close
response.redirect("showjl.asp")
%>
#6
我查了并且和数据库也对照了,字段个数是一样的
#7
介绍你一种常用调试方法,
先cnn.execute "Insert into jlb(jl_zsxm)values('" & tmpzsxm & "')"
看看这句话会不会出错,如果还是出错,就不是你插入数据库有问题了。
如果没有错,那就将剩下的一个一个加进去,一次一次调试,
虽然土了点,但是绝对可靠
先cnn.execute "Insert into jlb(jl_zsxm)values('" & tmpzsxm & "')"
看看这句话会不会出错,如果还是出错,就不是你插入数据库有问题了。
如果没有错,那就将剩下的一个一个加进去,一次一次调试,
虽然土了点,但是绝对可靠
#8
cnn.execute "Insert into jlb(jl_zsxm,jl_xb,jl_sfzh,jl_csrq,jl_mz,jl_sg,jl_tz,jl_hf,jl_jg,jl_mqszd,jl_lxdh,jl_txdz,jl_yzbm,jl_jtdh,jl_sjhm,jl_email,jl_zgxl,jl_byyx,jl_byrqn,jl_sxzylb,jl_sxzymc,jl_dezylb,jl_dezymc,jl_yyyz,jl_yysp,jl_zzmm,jl_rclx,jl_qzlx,jl_gznx,jl_zc,jl_jtzc,jl_yxyq,jl_dzrq,jl_gzjl,jl_nljzc,jl_yhm,jl_mm,jl_cfmm)values('" & tmpzsxm & "','" & tmpxb & "', '" & tmpsfzh & "','" & tmpcsrq & "','" & tmpmz & "','" & tmpsg & "','" & tmptz & "','" & tmphf & "','" & tmpjg & "','" & tmpmqszd & "','" & tmplxdh & "','" & tmptxdz & "','" & tmpyzbm & "','" & tmpjtdh & "','" & tmpsjhm & "','" & tmpemail & "','" & tmpzgxl & "','" & tmpbyyx & "','" & tmpbyrqn & "','" & tmpsxzylb & "','" & tmpsxzymc & "','" & tmpdezylb & "','" & tmpdezymc & "','" & tmpdezymc & "','" & tmpyyyz & "','" & tmpyysp & "','" & tmpzzmm & "','" & tmperclx & "','" & tmpqzlx & "','" & tmpgznx & "','" & tmpzc & "','" & tmpjtzc & "','" & tmpyxyq & "','" & tmpdzrq & "','" & tmpgzjl & "','" & tmpnljzc & "','" & tmpyhm & "','" & tmpmm & "','" & tmpcfmm & "')"
------------------------------
这里面字段是38个,value是39个,如果我么数错的话
------------------------------
这里面字段是38个,value是39个,如果我么数错的话
#9
呵呵,是我太马虎了,value多了一个。
#1
代码又不贴出来怎么给你搞啊
#2
代码呢!
#3
这是代码:
<%
filepath=server.mappath("jianli.mdb")
set cnn=server.createobject("adodb.connection")
cnn.open "provider=microsoft.jet.oledb.4.0;data source=" & filepath
tmpzsxm=request.form("zsxm")
tmpzsxm=request.form("cfmm")
cnn.execute "Insert into jlb(jl_zsxm,jl_xb,jl_sfzh,jl_csrq,jl_mz,jl_sg,jl_tz,jl_hf,jl_jg,jl_mqszd,jl_lxdh,jl_txdz,jl_yzbm,jl_jtdh,jl_sjhm,jl_email,jl_zgxl,jl_byyx,jl_byrqn,jl_sxzylb,jl_sxzymc,jl_dezylb,jl_dezymc,jl_yyyz,jl_yysp,jl_zzmm,jl_rclx,jl_qzlx,jl_gznx,jl_zc,jl_jtzc,jl_yxyq,jl_dzrq,jl_gzjl,jl_nljzc,jl_yhm,jl_mm,jl_cfmm)values('" & tmpzsxm & "','" & tmpxb & "', '" & tmpsfzh & "','" & tmpcsrq & "','" & tmpmz & "','" & tmpsg & "','" & tmptz & "','" & tmphf & "','" & tmpjg & "','" & tmpmqszd & "','" & tmplxdh & "','" & tmptxdz & "','" & tmpyzbm & "','" & tmpjtdh & "','" & tmpsjhm & "','" & tmpemail & "','" & tmpzgxl & "','" & tmpbyyx & "','" & tmpbyrqn & "','" & tmpsxzylb & "','" & tmpsxzymc & "','" & tmpdezylb & "','" & tmpdezymc & "','" & tmpdezymc & "','" & tmpyyyz & "','" & tmpyysp & "','" & tmpzzmm & "','" & tmperclx & "','" & tmpqzlx & "','" & tmpgznx & "','" & tmpzc & "','" & tmpjtzc & "','" & tmpyxyq & "','" & tmpdzrq & "','" & tmpgzjl & "','" & tmpnljzc & "','" & tmpyhm & "','" & tmpmm & "','" & tmpcfmm & "')"
cnn.close
response.redirect("showjl.asp")
%>
<%
filepath=server.mappath("jianli.mdb")
set cnn=server.createobject("adodb.connection")
cnn.open "provider=microsoft.jet.oledb.4.0;data source=" & filepath
tmpzsxm=request.form("zsxm")
tmpzsxm=request.form("cfmm")
cnn.execute "Insert into jlb(jl_zsxm,jl_xb,jl_sfzh,jl_csrq,jl_mz,jl_sg,jl_tz,jl_hf,jl_jg,jl_mqszd,jl_lxdh,jl_txdz,jl_yzbm,jl_jtdh,jl_sjhm,jl_email,jl_zgxl,jl_byyx,jl_byrqn,jl_sxzylb,jl_sxzymc,jl_dezylb,jl_dezymc,jl_yyyz,jl_yysp,jl_zzmm,jl_rclx,jl_qzlx,jl_gznx,jl_zc,jl_jtzc,jl_yxyq,jl_dzrq,jl_gzjl,jl_nljzc,jl_yhm,jl_mm,jl_cfmm)values('" & tmpzsxm & "','" & tmpxb & "', '" & tmpsfzh & "','" & tmpcsrq & "','" & tmpmz & "','" & tmpsg & "','" & tmptz & "','" & tmphf & "','" & tmpjg & "','" & tmpmqszd & "','" & tmplxdh & "','" & tmptxdz & "','" & tmpyzbm & "','" & tmpjtdh & "','" & tmpsjhm & "','" & tmpemail & "','" & tmpzgxl & "','" & tmpbyyx & "','" & tmpbyrqn & "','" & tmpsxzylb & "','" & tmpsxzymc & "','" & tmpdezylb & "','" & tmpdezymc & "','" & tmpdezymc & "','" & tmpyyyz & "','" & tmpyysp & "','" & tmpzzmm & "','" & tmperclx & "','" & tmpqzlx & "','" & tmpgznx & "','" & tmpzc & "','" & tmpjtzc & "','" & tmpyxyq & "','" & tmpdzrq & "','" & tmpgzjl & "','" & tmpnljzc & "','" & tmpyhm & "','" & tmpmm & "','" & tmpcfmm & "')"
cnn.close
response.redirect("showjl.asp")
%>
#4
字段少了一个 或者value多了一个
#5
看这个吧
<%
filepath=server.mappath("jianli.mdb")
set cnn=server.createobject("adodb.connection")
cnn.open "provider=microsoft.jet.oledb.4.0;data source=" & filepath
tmpzsxm=request.form("zsxm")
tmpzsxm=request.form("cfmm")
cnn.execute "Insert into jlb(jl_zsxm,jl_cfmm)values('" & tmpzsxm & "','" & tmpcfmm & "')"
cnn.close
response.redirect("showjl.asp")
%>
<%
filepath=server.mappath("jianli.mdb")
set cnn=server.createobject("adodb.connection")
cnn.open "provider=microsoft.jet.oledb.4.0;data source=" & filepath
tmpzsxm=request.form("zsxm")
tmpzsxm=request.form("cfmm")
cnn.execute "Insert into jlb(jl_zsxm,jl_cfmm)values('" & tmpzsxm & "','" & tmpcfmm & "')"
cnn.close
response.redirect("showjl.asp")
%>
#6
我查了并且和数据库也对照了,字段个数是一样的
#7
介绍你一种常用调试方法,
先cnn.execute "Insert into jlb(jl_zsxm)values('" & tmpzsxm & "')"
看看这句话会不会出错,如果还是出错,就不是你插入数据库有问题了。
如果没有错,那就将剩下的一个一个加进去,一次一次调试,
虽然土了点,但是绝对可靠
先cnn.execute "Insert into jlb(jl_zsxm)values('" & tmpzsxm & "')"
看看这句话会不会出错,如果还是出错,就不是你插入数据库有问题了。
如果没有错,那就将剩下的一个一个加进去,一次一次调试,
虽然土了点,但是绝对可靠
#8
cnn.execute "Insert into jlb(jl_zsxm,jl_xb,jl_sfzh,jl_csrq,jl_mz,jl_sg,jl_tz,jl_hf,jl_jg,jl_mqszd,jl_lxdh,jl_txdz,jl_yzbm,jl_jtdh,jl_sjhm,jl_email,jl_zgxl,jl_byyx,jl_byrqn,jl_sxzylb,jl_sxzymc,jl_dezylb,jl_dezymc,jl_yyyz,jl_yysp,jl_zzmm,jl_rclx,jl_qzlx,jl_gznx,jl_zc,jl_jtzc,jl_yxyq,jl_dzrq,jl_gzjl,jl_nljzc,jl_yhm,jl_mm,jl_cfmm)values('" & tmpzsxm & "','" & tmpxb & "', '" & tmpsfzh & "','" & tmpcsrq & "','" & tmpmz & "','" & tmpsg & "','" & tmptz & "','" & tmphf & "','" & tmpjg & "','" & tmpmqszd & "','" & tmplxdh & "','" & tmptxdz & "','" & tmpyzbm & "','" & tmpjtdh & "','" & tmpsjhm & "','" & tmpemail & "','" & tmpzgxl & "','" & tmpbyyx & "','" & tmpbyrqn & "','" & tmpsxzylb & "','" & tmpsxzymc & "','" & tmpdezylb & "','" & tmpdezymc & "','" & tmpdezymc & "','" & tmpyyyz & "','" & tmpyysp & "','" & tmpzzmm & "','" & tmperclx & "','" & tmpqzlx & "','" & tmpgznx & "','" & tmpzc & "','" & tmpjtzc & "','" & tmpyxyq & "','" & tmpdzrq & "','" & tmpgzjl & "','" & tmpnljzc & "','" & tmpyhm & "','" & tmpmm & "','" & tmpcfmm & "')"
------------------------------
这里面字段是38个,value是39个,如果我么数错的话
------------------------------
这里面字段是38个,value是39个,如果我么数错的话
#9
呵呵,是我太马虎了,value多了一个。