首页 > 网站 > 建站经验 > 正文

-asp 无限级分类代码

2019-11-02 15:22:54
字体:
来源:转载
供稿:网友

Funct

窝窝电影网[www.aikan.tv/special/wowodianyingwang/]
ion GetSonID(ParentID)
       G_sql = "Select * From select_Class Where ParentID = " & int(ParentID)
       Set Srs = Easp.db.GetRecordBySQL(G_sql)
       If Not Srs.Eof Then
       While Not Srs.eof
              GetSonID = GetSonID & ","  & Srs("ClassID") & "," & GetSonID(Srs("ClassID"))
       Srs.movenext
       Wend
       'GetSonID = ParentID & "," & GetSonID
       End IF
       Easp.db.C(Srs)
End Function

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表