Open vibintv opened 8 years ago
Hi
Following is the output i get from my query
$array = array (0 => array ( 'id' => '1', 'parent' => '0','name'='aaaa' ), 1 => array ( 'id' => '2', 'parent' => '1','name'='mmmmm' ), 2 => array ( 'id' => '3', 'parent' => '0','name'='uuuu' ), 3 => array ( 'id' => '5', 'parent' => '0','name'='www' ), 4 => array ( 'id' => '17', 'parent' => '3','name'='bbbb' ), 5 => array ( 'id' => '31', 'parent' => '2','name'='ttttt' ), 6 => array ( 'id' => '32', 'parent' => '2','name'='kkkk') 7 => array ( 'id' => '97', 'parent' => '31','name'='pppp' ),);
If i created a table by looping trough this i will get the tree but the position of parent and child are not correct. The rows are not rearranged according to its parent id. Is it possible to rearrange them by this plugin to get the tree correctly.
Hi
Following is the output i get from my query
$array = array (0 => array ( 'id' => '1', 'parent' => '0','name'='aaaa' ), 1 => array ( 'id' => '2', 'parent' => '1','name'='mmmmm' ), 2 => array ( 'id' => '3', 'parent' => '0','name'='uuuu' ), 3 => array ( 'id' => '5', 'parent' => '0','name'='www' ), 4 => array ( 'id' => '17', 'parent' => '3','name'='bbbb' ), 5 => array ( 'id' => '31', 'parent' => '2','name'='ttttt' ), 6 => array ( 'id' => '32', 'parent' => '2','name'='kkkk') 7 => array ( 'id' => '97', 'parent' => '31','name'='pppp' ),);
If i created a table by looping trough this i will get the tree but the position of parent and child are not correct. The rows are not rearranged according to its parent id. Is it possible to rearrange them by this plugin to get the tree correctly.