i’m currently working on an application which require members to regiser under another member. a member can have a maximum of 5 members under him, bt each of those members can also have members under them. Pls how do i implement some sort of search to get all member under a specific member using php?
i’m currently working on an application which require members to regiser under another member.
Share
I recommend that you try implementing the nested set model. It’s bit complex to explain here but in a few lines of code but here are some links to get you started:
http://en.wikipedia.org/wiki/Nested_set_model
http://threebit.net/tutorials/nestedset/tutorial1.html