ASP update 更新不了 有错误

来源:百度知道 编辑:UC知道 时间:2024/05/11 04:50:42
dim rt
dim sql
set rt=server.CreateObject("adodb.recordset")
sql="select * dsfc_product where id="&ID

rt.open sql,conn,1,3

if Not rt.eof then
rt.addnew
rt("ID")=ID
rt("MaxClassID")=MaxClassID
rt("ClassID")=ClassID
rt("ComID")=ComID
rt("ProductName")=ProductName
rt("sfilename1")=sfilename1
rt("sfilename2")=sfilename2
rt("brand")=brand
rt("style")=style
rt("madefrom")=madefrom
rt("brand")=brand
rt("p_type")=p_type
rt("standard")=standard
rt("stuff")=stuff
rt("oldprice")=oldprice
rt("newprice")=newprice
rt("Content")=Content
rt("Is_Index")=Is_Index
rt("Is_Comm")=Is_Comm
rt("clicktimes")=clicktimes
rt("clicktimes")=now

select * from dsfc_product where id=5

他没有说那一行错吗?

看一看是不是某个值的长度超过了数据库字段要求的长度.

原因是你没有接收提交过来的参数,
sql="select * from dsfc_product where id="&request("ID")

原因是你没有接收提交过来的参数,
sql="select * from dsfc_product where id="&request("ID")