My script has to show member's downline (his referrals). But i came up with a problem - how can i do it.
I store all members data in Mysql database. Every member has "refid" field, which is their sponsor. I want to show one members downline. To show every member, where refid is 2, 15 or other member's id.
Can you help me? I can't think out anything. I thought to write everything in array, but i don't know how to extract all members all by one.
Thanks