The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Looking for a way to track referrals. Each person is allowed 10 on their first level then the 11th needs to spill over. Those ten are allowed 10 etc.
My problem is how to track this in a data base (Mysql)php.
We pay for 6 levels of commission only(a 10 x 6 matrix yields over 1 million on the 6th level).
I don't really understand threads and I a "tree" doesn't seem to fit the bill. I would end up with too much duplicated data.
If I needed to know how many referrals someone had, my query would have to be able to return the proper results.
Any thoughts or ideas.
Thank you,
zack
alexw7@juno.com