发帖时的错误

楼主
发帖时的错误
1楼
需要改进下列代码.

Announce2.asp


                 Form_RootID = cCur(Rs("RootID"))
                 Form_Layer = Rs("Layer") + 1
                 Form_TopicSortID = cCur(Rs("TopicSortID"))+1
                 Rs.Close
                 If Form_Layer>2 Then
                       Con.ExeCute(" Update LeadBBS_Announce Set ChildNum=ChildNum+1,LastTime=" & GetTimeValue(now) & ",LastUser='" & Replace(Form_UserName,"'","''") & "' where RootID=" & Form_RootID & " and ParentID=0")
                       Con.ExeCute(" Update LeadBBS_Announce Set ChildNum=ChildNum+1,LastTime=" & GetTimeValue(now) & ",LastUser='" & Replace(Form_UserName,"'","''") & "' where id=" & Form_ParentID)
                 Else
                       Con.ExeCute(" Update LeadBBS_Announce Set ChildNum=ChildNum+1,LastTime=" & GetTimeValue(now) & ",LastUser='" & Replace(Form_UserName,"'","''") & "' where id=" & Form_ParentID)
                 End If
                 Con.ExeCute("  Update LeadBBS_Announce Set TopicSortID=TopicSortID+1 where RootID=" & Form_RootID & " and TopicSortID>=" & Form_TopicSortID)
2楼
BODY {
     SCROLLBAR-3DLIGHT-COLOR: #d1d3d4;
     SCROLLBAR-ARROW-COLOR: #fff79b;
     SCROLLBAR-DARKSHADOW-COLOR: #d1d3d4;
     SCROLLBAR-BASE-COLOR: #d1d3d4;
     font-size: 12px;
}

电脑版 Page created in 0.0312 seconds with 2 queries.