Get all child, grandchild etc nodes under parent using php with mysql query results
问题 I\'ve been trying to figure this out but I haven\'t gotten anywhere.Hopefully someone can come to my rescue. My problem is I\'m using adjacency list data model to produce my hierarchy data in mysql.I can retrieve the table (see below) into a multidimension array with associative array for each item. What I want to do is once I get this array , I want to get another array with all the nodes (child, grandchild etc) under a parent id (including the parent item).I just can\'t workout how to code