开发者

Create a Tree in php mysql with specific conditions

开发者 https://www.devze.com 2023-03-31 22:20 出处:网络
I\'m working on a MLM project, But the problem is, I don\'t have proper logic to built a tree lik开发者_运维百科e this.

I'm working on a MLM project, But the problem is, I don't have proper logic to built a tree lik开发者_运维百科e this. i have uploaded the screen shot of tree here, please view it, how tree should be built

Create a Tree in php mysql with specific conditions

i have a form where user will enter the referal_id at the time of sign up, and the new user should get inserted into the referal_id(S) tree in the same way as tree is growing.

Please help with some algorithm or some good code, that can solve my problem :-(


http://snipplr.com/view/22864

Here you have an example how you build a tree in php.

0

精彩评论

暂无评论...
验证码 换一张
取 消