anshad.musafir 0 Newbie Poster

I am working with an mlm website with two level binary system like this;


1 refered 2 as left child & 3 as right child---level 1
2 refered 4 as left child & 5 as right child---level 2
3 refered 6 as left child & 7 as right child---level 3 and so on
i am populated the mysql database with sponsorcode(chainid of sponsor),position(L/R),chainid.

i want to print a tree view with a common image for joined users and onother image for no user field, i want to load a signup form with its above sponsorcode as the referer when clicking the second free user image.this for admin.

and i want to see only the loged member image and his referd users when a member loged in, he has the opportunity to add many users at the free points.

anyone has the solution? please help me urgent i am on deadline!