Find Jobs
Hire Freelancers

I h ave a function thats needs to be coded on php. no testing, just code so i can be implemented on php.

$10-30 USD

Cancelled
Posted almost 9 years ago

$10-30 USD

Paid on delivery
CheckforNewRepLevel(rep id ) { get from table rep RepGQVolume , Directreps , Directclients, read qualifications that should be in a table Qualifications -Q- ( we will manage Ranks 1 through 8) read table on an array Q so [login to view URL]). value should be 1, [login to view URL](2). value should be 2 / [login to view URL](4). value is 3 for i= 1 to #8 if DirectReps < [login to view URL](i) then reprank = I ; exit for if DirectClients < [login to view URL](i) then reprank = I ; exit for if GQV < [login to view URL](i) Then reprank = I ; exit for read from table in an arraydirects() select all repid from rep table where directrep = repid repneeded = 1 k= 1 z = 0 //loop through all the directreps looking for the # of reps needed to qualify while k <= count how many rows in arraydirects() and repneeded <= [login to view URL](i) { // numberof levels to look down is 8 – 1beacuse we just read direct rep that are level 1 RepstoUSeforadvancerank(z)= istherearepundertoqualify(arraydirects(k),I,7) if RepstoUSeforadvancerank(z) <> “” the repneeded = repneeded + 1 k = k + 1 z = z + 1 } if repneeded >= [login to view URL](i) then { //get the repid to use for the qualification and update the field of rephelpedtoqualified Z = 0 for z to [login to view URL](i) -1 update rephelpedtoqualified = repid from tablerep where repid = RepstoUSeforadvancerank(z) next z } next i update field reprank = I on table rep -- } //recursive function search reps under RepId that have Rank i and rephelpedtoqualified = “” istherearepundertoqualify (RepID,Ranksearched,levels) { select rank, rephelpedtoqualified from table rep where repid = repid if ranksearched = rank and rephelpedtoqualified = "" then return repid ; exit function read from table in an arraydirects() select all repid from rep table where directrep = repid I = 1 for i to levels{ istherearepundertoqualify(arraydirects(i),ranksearched,levels - 1) } return “” }
Project ID: 8055068

About the project

4 proposals
Remote project
Active 9 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
4 freelancers are bidding on average $26 USD for this job
User Avatar
Hello Contact me in the chat to discuss more about your project. Britishlancer
$30 USD in 1 day
5.0 (4 reviews)
3.4
3.4
User Avatar
Hi, I am a PHP architect with 8 years of experience in PHP and web. Let me help out on this one. I can do this quickly and efficiently
$30 USD in 1 day
5.0 (3 reviews)
1.9
1.9
User Avatar
I hope you will be fine and doing well. I am professional php developer. I am immediately available and can do this job as urgent base. Thanks
$20 USD in 0 day
3.5 (2 reviews)
2.0
2.0

About the client

Flag of UNITED STATES
houston, United States
5.0
7
Payment method verified
Member since Oct 2, 2011

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.