I am developing a website related to network marketing which has a binary incentive scheme. i want a code which shows the downline of a member. a member can have 2 downlines and those downlines can have downlines as well. so i want a code which shows all the downlines.
for example: a has 2 downlines b and c. b can have 2 downlines d and e and c can have 2 downlines as f and g and so on
so i want to display all the downlines of a which makes it b, c, d, e, f, g
i want the query of mysql with php code
Please help

What have you tried or considered so far? Have you looked at hierarchical trees?

There are plently of open source PHP Tree classes available online; all you need do is look for them.

R.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.