I am going to make multi level referral system which is not a binary system. If A is the parent of B and B is the parent of C.
If C do any action, some percentage will be distributed between B and A. I will use for loop for giving certain commission. But this chain be of 75 levels.
I think running for loop for 75 times will hang the PHP script. Should I break loop into 3 pieces or 1 loop can handle this?
I know this is not related to coding but related to logic. Looking for some useful suggestions. I am working on CodeIgniter framework.