Find Jobs
Hire Freelancers

Need help with Multi-Level programming for a price..

$30-5000 USD

Completed
Posted almost 21 years ago

$30-5000 USD

Paid on delivery
I'm a PHP newbie that current having some problem about how to code related to Multi- Level programming. I would want you to help me about how to code the following function. The function I want is to calculate credit through 10 level deep based on the referral detail which will be paid to the top user of the downline. For example: Let's say everybody has 100 credits in Users Table, and let's start with user 1. First find out how many direct referral and referral in each level are and who they are. Then calculate how many credit will user 1 get from each user by multiplying with the value in CreditGlobal Table with the number of credits of direct referral and every referral down to 10 level deep. In this example, there are 10 users in direct referral and 1 referral in each level from the first level down to the tenth level. So, user will get: direct referral .... 100 credits x 50% = 50 credits each... 10 referrals (user 2 to 11)..so user 1 get 500 credits for direct referral. level 1... 100 credits x 10% = 10 credits... 1 referral (user 2).. so user 1 get 10 credits in this level.... and so on.. These info will be put in the UserCreditInfo Table. ****** see example below ******* RefInfo | Name | Detail | | UserID | user id | | ReferredBy | the id of user who refer this user | | DirectRef | the id of user who directly refer this user | ## Deliverables There are 4 tables involved. Users, RefInfo, CreditGlobal and UserCreditInfo What I want to do is to calculate credit through 10 level deep based on the referral detail... For example: | UserID | ReferredBy | DirectRef | Detail | % of credit | | 1 | | | user 1 is on the top, no one refer this user | let's start with user 1 user 1 will get 50% of direct referral's credits and get 10 % from every referral in his downline through 10 level deep. | | 2 | 1 | 1 | user 2 is referred by user 1, and directly referred by user 1 | | 3 | 2 | 1 | user 3 is referred by user 2, and directly referred by user 1 | | 4 | 3 | 1 | user 4 is referred by user 3, and directly referred by user 1 | | 5 | 4 | 1 | user 5 is referred by user 4, and directly referred by user 1 | | 6 | 5 | 1 | user 6 is referred by user 5, and directly referred by user 1 | | 7 | 6 | 1 | user 7 is referred by user 6, and directly referred by user 1 | | 8 | 7 | 1 | user 8 is referred by user 7, and directly referred by user 1 | | 9 | 8 | 1 | user 9 is referred by user 8, and directly referred by user 1 | | 10 | 9 | 1 | user 10 is referred by user 9, and directly referred by user 1 | | 11 | 10 | 1 | user 11 is referred by user 10, and directly referred by user 1 | Let's say everybody has 100 credits in Users Table, and let's start with user 1. First find out how many direct referral and referral in each level are and who they are. Then calculate how many credit will user 1 get from each user by multiplying with the value in CreditGlobal Table with the number of credits of direct referral and every referral down to 10 level deep. In this example, there are 10 users in direct referral and 1 referral in each level from the first level down to the tenth level. So, user will get: direct referral .... 100 credits x 50% = 50 credits each... 10 referrals (user 2 to 11)..so user 1 get 500 credits for direct referral. level 1... 100 credits x 10% = 10 credits... 1 referral (user 2).. so user 1 get 10 credits in this level.... and so on.. Users | Name | Detail | | UserID | user id | | Status | PAID, FREE, NOT_CONFIRM | | Credits | amount of credits | | JoinDate | the date which user joined | *********End******** 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform CreditGlobal | Name | Detail | | Direct | 50% to pay for the direct referral | | L1 | 10% to pay in level 1 | | L2 | 10% to pay in level 2 | | L3 | 10% to pay in level 3 | | L4 | 10% to pay in level 4 | | L5 | 10% to pay in level 5 | | L6 | 10% to pay in level 6 | | L7 | 10% to pay in level 7 | | L8 | 10% to pay in level 8 | | L9 | 10% to pay in level 9 | | L10 | 10% to pay in level 10 | PHP 4.0 MySQL
Project ID: 2924288

About the project

5 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$30.60 USD in 14 days
5.0 (99 reviews)
7.2
7.2
5 freelancers are bidding on average $38 USD for this job
User Avatar
See private message.
$21.25 USD in 14 days
4.9 (18 reviews)
4.3
4.3
User Avatar
See private message.
$75.65 USD in 14 days
5.0 (16 reviews)
3.9
3.9
User Avatar
See private message.
$21.25 USD in 14 days
5.0 (4 reviews)
2.1
2.1
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of
5.0
33
Member since Jul 13, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.