asp批量修改记录的代码
时间:2022-04-11 10:45:52|栏目:JavaScript代码|点击: 次
<%
'asp 数组 批量修改记录
id=Request("id")
id=Split(id,",")
hits=Request("hits")
hits=Split(hits,",")
regtime=Request("regtime")
regtime=Split(regtime,",")
For i=LBound(id) To UBound(id)
Set rs = Server.CreateObject("ADODB.Recordset")
sql= "Select * from article where id ="&id(i)
If Not rs.EOF Then
rs("hits")=hits(i)
rs("regtime")=regtime(i)
rs.Update
End If
Next
%>
'asp 数组 批量修改记录
id=Request("id")
id=Split(id,",")
hits=Request("hits")
hits=Split(hits,",")
regtime=Request("regtime")
regtime=Split(regtime,",")
For i=LBound(id) To UBound(id)
Set rs = Server.CreateObject("ADODB.Recordset")
sql= "Select * from article where id ="&id(i)
If Not rs.EOF Then
rs("hits")=hits(i)
rs("regtime")=regtime(i)
rs.Update
End If
Next
%>
栏 目:JavaScript代码
下一篇:document.all还是document.getElementsByName?
本文标题:asp批量修改记录的代码
本文地址:http://www.codeinn.net/misctech/198835.html