ASP增加多条记录的问题,急解呀!
User_Id=Request("User_Id")'这是接收到的字符串(如“22,23,24”)Works_Title=Trim(Request("Works_Titl...
User_Id=Request("User_Id") '这是接收到的字符串(如“22,23,24”)
Works_Title=Trim(Request("Works_Title")) ‘这是增加标题的
Works_Content = "" ’这是内容
For i = 1 To Request("Works_Content").Count
Works_Content = Works_Content & Request("Works_Content")(i)
Next
strName = Split(User_Id,", ")
Dim j
For j = 0 To UBound(strName)
Sql="Select * From Works_Info where (Works_Id is null)"
Rs.Open Sql,Conn,1,3
Rs.Addnew
Rs("User_Id")=strName(j)
Rs("Works_Title")=Works_Title
Rs("Works_Content")=Works_Content
Rs.Update
Rs.Close
Set Rs = nothing
Next
为什么只增加到一条22的!
加一句 response.write strName(j) 又能显示22 23 24 展开
Works_Title=Trim(Request("Works_Title")) ‘这是增加标题的
Works_Content = "" ’这是内容
For i = 1 To Request("Works_Content").Count
Works_Content = Works_Content & Request("Works_Content")(i)
Next
strName = Split(User_Id,", ")
Dim j
For j = 0 To UBound(strName)
Sql="Select * From Works_Info where (Works_Id is null)"
Rs.Open Sql,Conn,1,3
Rs.Addnew
Rs("User_Id")=strName(j)
Rs("Works_Title")=Works_Title
Rs("Works_Content")=Works_Content
Rs.Update
Rs.Close
Set Rs = nothing
Next
为什么只增加到一条22的!
加一句 response.write strName(j) 又能显示22 23 24 展开
2个回答
网易云信
2023-12-06 广告
2023-12-06 广告
很高兴能回答您的问题。以下是一段针对“一对一消息组件”的描述,字数在200字左右:该组件支持用户之间的私密交流,让沟通更加直接和高效。通过它,您可以向特定对象发送消息,并实时查看消息状态,包括对方是否已读或未读。同时,该组件还支持富文本消息...
点击进入详情页
本回答由网易云信提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询