asp代码出现错误无法更新数据库 update语法错误 50
Subysh()file=year(now)&month(now)&day(now)&hour(now)&minute(now)&second(now)rcID=requ...
Sub ysh()
file=year(now)&month(now)&day(now)&hour(now)&minute(now)&second(now)
rcID=request.Form("IDs")
if rcID="" then
response.write"<script>alert('未选择!');history.go(-1)</script>"
response.end
end if
for i=1 to request.form("IDs").count 'IDs为多选框
pingpaiid=replace(request.form("IDs")(i),"'","")
pingpaiorder=replace(request.form("sel")(i),"'","") ‘sel为下拉菜单1
tuijian=replace(request.form("sel1")(i),"'","") ’sel为下拉菜单2
conn.execute("update DB_yy set shtime='"&file&"',ysmemo1='"&pingpaiorder&"',check='"&tuijian&"' where id="&pingpaiid)
next
conn.close
set conn=nothing
end sub 展开
file=year(now)&month(now)&day(now)&hour(now)&minute(now)&second(now)
rcID=request.Form("IDs")
if rcID="" then
response.write"<script>alert('未选择!');history.go(-1)</script>"
response.end
end if
for i=1 to request.form("IDs").count 'IDs为多选框
pingpaiid=replace(request.form("IDs")(i),"'","")
pingpaiorder=replace(request.form("sel")(i),"'","") ‘sel为下拉菜单1
tuijian=replace(request.form("sel1")(i),"'","") ’sel为下拉菜单2
conn.execute("update DB_yy set shtime='"&file&"',ysmemo1='"&pingpaiorder&"',check='"&tuijian&"' where id="&pingpaiid)
next
conn.close
set conn=nothing
end sub 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询