Codeigniter Binary MLM Show List of Downlines By User

810 Views Asked by At

I am working on Binary MLM using Codeigniter And I want to show all the list in a Table of user referred by me and the user referred by my downline.

Anyone I can only show the user that is referred by me. I need to get the user referred by my downline as well.

I want to get all my downline and like the pic below:

View Image

DATABASE STRUCTURE:

View Image

When you look at the db structure pic you will see 'referred_by == the referral' and username is the referred user.

0

There are 0 best solutions below