How to make mlm/binary script - one member have maximum 2 direct downline.
I have search at google and find for my reference:
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
and
http://www.sitepoint.com/article/hierarchical-data-database
Then I make script pursuant to above mentioned my reference.
And the table is like this (5 field):
field name:
id - title - parent - left - right
I have problem about position.
Are there I must add new field 'position' to store member position on left or right.
how to manage that member can only have 2 direct downline ?
and how to get member level depth ?
please explain me about the algorithm hierarchical data ?
Thanks
I have search at google and find for my reference:
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
and
http://www.sitepoint.com/article/hierarchical-data-database
Then I make script pursuant to above mentioned my reference.
And the table is like this (5 field):
field name:
id - title - parent - left - right
I have problem about position.
Are there I must add new field 'position' to store member position on left or right.
how to manage that member can only have 2 direct downline ?
and how to get member level depth ?
please explain me about the algorithm hierarchical data ?
Thanks
