affid upline sponsor
1 0 0
2 1 1
3 1 1
4 2 1
5 2 2
6 3 1
7 3 1
8 4 1
9 4 1
10 5 1
i have table with field and data like above in my database mysql,
and i only can preview that data in tree format
lebel 1 (affid=2)
......................level 2
.....................................level 3
level 1 (affid=3)
......................level 2
.....................................level 3
now i want to preview that data in table, like this
level1 (in table)
level2
level3
can someone help me ???