<% rstForumMessages.MoveNext
intLevel = intLevel - 1 %>
<% Loop
End Function
Function GetRoot(intMsg)
Dim strSQL, rstMsg
strSQL="SELECT parentid,messageid from tblMessages where messageid=" &intMsg
Set rstMsg=connObj.Execute(strSQL)
If Not rstMsg.EOF Then
If rstMsg("parentid")=0 Then
GetRoot=rstMsg("messageid")
Else
GetRoot=GetRoot(rstMsg("parentid"))
End If
End If
End Function
%>
Emental-health.com discussion boards