账号通
    

账号  

密码  

4345

查看

8

回复
主题:v6多模型文章关联临时解决方案~ [收藏主题] 本贴被认定为精华 转到:  
一生有你 当前离线

10439

主题

0

广播

18

粉丝
添加关注
级别:版主

用户积分:72521 分
登录次数:1969 次
注册时间:2006/7/1
最后登录:2021/8/25
一生有你 发表于:2009/10/9 16:52:00   | 显示全部帖子 查看该作者主题 楼主 
科汛智能建站系统

经测试你的方法有效.加精处理

 

另我我补充下,后台全部移除相关信息无效的解决方法

打开admin/ks.article.asp

 

找到

      If SelectInfoList<>"" Then
       Conn.Execute("Delete From KS_ItemInfoR Where InfoID=" & NewsID & " and channelid=" & ChannelID)
       SelectInfoList=Split(SelectInfoList,",")
       For I=0 To Ubound(SelectInfoList)
        If KS.FoundInArr(HasInRelativeID,SelectInfoList(i),",")=false Then
            Conn.Execute("Insert Into KS_ItemInfoR(ChannelID,InfoID,RelativeChannelID,RelativeID) values(" & ChannelID &"," & RS("ID") & "," & Split(SelectInfoList(i),"|")(0) & "," & Split(SelectInfoList(i),"|")(1) & ")")
         HasInRelativeID=HasInRelativeID & SelectInfoList(i) & ","
        End If
       Next
      End If

修改成

      Conn.Execute("Delete From KS_ItemInfoR Where InfoID=" & NewsID & " and channelid=" & ChannelID)

      If SelectInfoList<>"" Then
         SelectInfoList=Split(SelectInfoList,",")
       For I=0 To Ubound(SelectInfoList)
        If KS.FoundInArr(HasInRelativeID,SelectInfoList(i),",")=false Then
            Conn.Execute("Insert Into KS_ItemInfoR(ChannelID,InfoID,RelativeChannelID,RelativeID) values(" & ChannelID &"," & RS("ID") & "," & Split(SelectInfoList(i),"|")(0) & "," & Split(SelectInfoList(i),"|")(1) & ")")
         HasInRelativeID=HasInRelativeID & SelectInfoList(i) & ","
        End If
       Next
      End If

 

即把删除语句提前.这样就可以移除了,其它模型类似.图片在KS.Picture.asp,下载ks.down.asp ,商城KS.Shop.asp


 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.04688秒 powered by KesionCMS 9.0