it's nearly a mathematical prob, actually i m making a multi level marketing application i n which a person have to refer atleast 2 person , and those 2 person have to refer further 2 person and so on. on the basis of there reference they are paid some amount, according to following rule
they will paid amonut when they completed one or more then one steps(1 step completed when the person had refered 9 person according to following propotiionality
left : right
3 : 6
6 : 3
5 : 4
4 : 5
), lets suppose a person has refered 32 person in order to find how many steps he had completed i need a general solutiuon in php.
thanking u
shmas