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:
DATABASE STRUCTURE:
When you look at the db structure pic you will see 'referred_by == the referral' and username is the referred user.