28,407
社区成员
发帖
与我相关
我的任务
分享function getPPID(pid)
set rs = Server.CreateObject("adodb.recordset")
rs.open "select pid from A where id="&pid,conn,1,1
if rs("pid") = 0 then
PPID = pid
else
PPID = getPPID(rs("pid"))
end if
rs.close
getPPID = PPID
end function
ppid = getPPID(3)'cccccc栏目