PHP code to count all user downlines from LEFT and RIGHT Heirrachy

Closed Posted 6 years ago Paid on delivery
Closed

I need a functional php code that would count all referrals infinitely. In my website, each user is referred by an "upline" during registration. These data are in mysql database.

*P.S My website is MLM (multilevel Marketing) by the way.

PLEASE look at the attached picture example and the following is seen: A is referrer of B & C; B is referrer of D & E; C is referrer of F & G; while G referred only H at the moment.

"A" has total of 7 referrals already (3 from left and 4 from right). assuming, this referral process continues deep down the genealogy infinitely, i want the count to go deep down the hierrachy [login to view URL] picture is just an example, i will need you to do this code into my website.

My need is a php code that would count the total current number of referrals under a user from his right leg (separately) and left leg (separately) no matter the number of current downlines he has?.

In the picture example above, we can easily see that "A" has his LEFT's downline count to be '3' and RIGHT's count to be '4'. I will implement this in MLM website that has thousands of users and each user needs to know their downline counts (LEFT and RIGHT LEG). the users are stored in MYSQL database

MySQL PHP

Project ID: #16392621

About the project

23 proposals Remote project Active 5 years ago

23 freelancers are bidding on average $20/hour for this job

meet2amitvw

fine i can make the custom php function as per your image but need to discuss some technical logics before i estimate so let me know when you are available to discuss this in more detail ?

$22 USD / hour
(170 Reviews)
9.3
Shopify

Hello, Dear client we have checked your project [ PHP code to count all user downlines from LEFT and RIGHT Heirrachy ] Please share your Ideas and Business details for your website so we can suggest you a best plat More

$22 USD / hour
(26 Reviews)
6.9
kripanidhi

I WILL BUILD THE EXACT PHP FUNCTION THAT YOU WANT WITH ALL THE FEATURES AND FUNCTIONALITIES THAT YOU WANT. COMPLETE PHP FUNCTION I bring 10+ years of experience and over 150+ projects that have originated from arou More

$22 USD / hour
(55 Reviews)
5.8
degreeinfo

Hello

$22 USD / hour
(20 Reviews)
5.5
pierzakp

Hello, I can deliver you fast solution in short time period for counting nested leafs in the tree. I have 9 years development experience. Will be happy to implement requested changes with guarantee of high quality. More

$27 USD / hour
(17 Reviews)
5.3
Amitkumar1806

Dear client, Thank you for allowing me to post bid on your project. Description of project----PHP code to count all user downlines from LEFT and RIGHT Heirrachy Iam ready to start now....i can provide you Great Qua More

$16 USD / hour
(38 Reviews)
5.7
tsebro

Greetings! I will create PHP script that will calculate number of refered user on LEFT or RIGHT leg of user tree. I am professional Web Developer and co-owner of a web-development team with 15+ years of experience in W More

$24 USD / hour
(12 Reviews)
6.0
Darshit222

Hii Sir, I would love to do this type of work because I have already worked on this type of projects in my previous job. We're working on data of millions of people. I got expertise in fast processing this type of mys More

$15 USD / hour
(14 Reviews)
4.1
socialctr

I am an expert designer and eligible enough to pull the mentioned job I understand , both leg does't show your aqurate references I can make you sure that we will solve this problem so, If YES is your answer or yo More

$22 USD / hour
(2 Reviews)
3.2
shuklagfzr

Hi, my name is Parmod Kumar I have great PHP+MySQL experience along with all php frameworks, CMS and js. so I can do almost everything. But for me is more important friendly relationship within a team rather tha More

$22 USD / hour
(0 Reviews)
0.0