选中复选框后,将多个值写入数据库 15
<INPUTname="storage"type="Hidden"id="storage"value="<%=rs("aa")%>"><INPUTname="selBig...
<INPUT name="storage" type="Hidden" id="storage" value="<%=rs("aa")%>"><INPUT name="selBigClass" type="checkbox" id="selBigClass" value="<%=rs("id")%>">
For i=1 to Request.Form("selBigClass").count
id=Request.Form("selBigClass")(i)
content1=request("aa")
sqlA="select storage from storage where storage_id="&storageid&" "
set rsA=conn.execute(SQLA)
content=rsA("storage")
sql="update storage set storage='"&content1&"',storage1='"&content&"' where storage_id="&storageid&" "
conn.execute(sql)
Next
还没有人回答吗?
UPDATE storage SET storage.storage = 6, storage.storage1 =storage WHERE storage.storage_id=3;
这句在SQL环境下没问题,但在ASP中就不行。 展开
For i=1 to Request.Form("selBigClass").count
id=Request.Form("selBigClass")(i)
content1=request("aa")
sqlA="select storage from storage where storage_id="&storageid&" "
set rsA=conn.execute(SQLA)
content=rsA("storage")
sql="update storage set storage='"&content1&"',storage1='"&content&"' where storage_id="&storageid&" "
conn.execute(sql)
Next
还没有人回答吗?
UPDATE storage SET storage.storage = 6, storage.storage1 =storage WHERE storage.storage_id=3;
这句在SQL环境下没问题,但在ASP中就不行。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询