以下ASP+access插入数据代码错在哪里?

strsql="InsertIntoweb_product(p_class,p_name,p_code,p_price,p_detail,p_pic,p_smallpic... strsql="Insert Into web_product(p_class,p_name, p_code, p_price, p_detail, p_pic, p_smallpic, p_symbol, p_size, p_weight, p_face, p_place, p_producer, mn_id) values("
strsql=strsql & "" & strClass & ", "
strsql=strsql & "'" & strName & "', "
strsql=strsql & "'" & upload.Form("txtCode") & "', "
strsql=strsql & "" & strPrice & ", "
strsql=strsql & "'" & strContent & "', "
strsql=strsql & "'" & strPic & "', "
strsql=strsql & "'" & strSmallPic & "',"
strsql=strsql & "'" & upload.Form("txtsymbol") & "', "
strsql=strsql & "'" & upload.Form("txtsize") & "', "
strsql=strsql & "'" & upload.Form("txtweight") & "', "
strsql=strsql & "'" & upload.Form("txtface") & "', "
strsql=strsql & "'" & upload.Form("txtplace") & "', "
strsql=strsql & "'" & upload.Form("txtproducer") & "', "
strsql=strsql & "'" & upload.Form("mnid") & "' )"
展开
 我来答
湘味熊美食
2009-04-22 · 超过71用户采纳过TA的回答
知道小有建树答主
回答量:271
采纳率:0%
帮助的人:139万
展开全部
<%
dim name,company,tel,fax,mobile,email,homepage,content,password,ip

name=safeRequest("name",0,"")
company=safeRequest("company",0,"")
tel=safeRequest("tel",0,"")
fax=safeRequest("fax",0,"")
email=safeRequest("email",0,"")
mobile=safeRequest("mobile",0,"")
homepage=safeRequest("homepage",0,"")
content=safeRequest("content",0,"")
content=replace(content,vbCrLf,"<br>")
password=safeRequest("password",0,"")
ip=request.servervariables("remote_addr")

sqlcmd="insert into gbook (name,company,tel,fax,mobile,email,homepage,content,ip) values ('"&name&"','"&company&"','"&tel&"','"&fax&"','"&mobile&"','"&email&"','"&homepage&"','"&content&"','"&ip&"')"

conn.execute sqlcmd
conn.close
set conn=nothing
%>

这个可能对你有帮助!!
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式