Can you post your table structure, and how you define the relation between members ?
You might get a better solution at least to lower the database overhead (in your case if a member has 1016 referral, you'll have to do 1016 query which is not efficient).
I've taken a look at your code And I couldn't keep track of what's going on, Hopes someone else can help with your current code.
In reply to Re: Recursive programming question
by ahmad
in thread Recursive programming question
by ukndoit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |