shanrj17 Posted April 10, 2013 Share Posted April 10, 2013 I m working on a MLM project in which i have to store member automatically in binary tree form like 1 is root2 is child of 13 is child of 1 Then 4 is child of 25 is child of 2 6 is child of 37 is child of 3 then 8 is child of 4 and so on ...... I Want to Create a Downline in above Structure. Please Help me. can any body help me Its urgent please help me. Quote Link to comment https://forums.phpfreaks.com/topic/276763-binary-tree-in-php/ Share on other sites More sharing options...
l0gic Posted April 10, 2013 Share Posted April 10, 2013 Give us something you've done, any code at all that looks like it's an attempt at what you're trying to achieve.. So we can help. Quote Link to comment https://forums.phpfreaks.com/topic/276763-binary-tree-in-php/#findComment-1423889 Share on other sites More sharing options...
Barand Posted April 10, 2013 Share Posted April 10, 2013 do you mean you want something like this? +---1 +---2 +---4 +---8 +---5 +---3 +---6 +---7 Quote Link to comment https://forums.phpfreaks.com/topic/276763-binary-tree-in-php/#findComment-1423896 Share on other sites More sharing options...
Jessica Posted April 10, 2013 Share Posted April 10, 2013 The database structure would be fairly simple, the tricky part is outputting that data in a way that is readable. Quote Link to comment https://forums.phpfreaks.com/topic/276763-binary-tree-in-php/#findComment-1423924 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.