28,409
社区成员




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栏目