what is the trick to develop in php multilevel affiliate earnings script ?
If eg 2 levels:
an affiliate(1st) who become affiliate from another affiliate(2nd) then then upon earn commission both affiliates get from a percentage ...

Affiliate Terms:
...
You get commision 7% and all affiliates you do you get from them 5%...
...