Hello Sir,
I want to create binary tree for MLM(Multi level Marketing) project,
For this we have database Having Parent_ID with Left-Right Positions
As Examle we have databse like as follow:-
Sno UserID ParentID Position
1 1001 1000 Left
2 1002 1000 Right
3 1003 1001 Left
4 1004 1001 Right
5 1005 1002 Left
6 1006 1002 Right
7 1007 1003 Left
8 1008 1003 Right
9 1009 1004 Left
10 1010 1004 Right
11 1011 1005 Left
12 1012 1005 Right
13 1013 1006 Left
14 1014 1006 Right
15 1015 1007 Left
16 1016 1007 Right
I want to create a tree having Root Node with its Child left right node.
As Given in the Following Image:-
