Advertisement

08.25.2008 at 01:05PM PDT, ID: 23676459
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.1

Developing Odd Genealogical Tree System

Asked by deltaend in PHP Scripting Language, MySQL Server

Tags:

I'm developing a MLM website and the order in which people signup (and under who) matters for commissions.  Users have a Right-Leg and a Left-Leg of their genealogical tree they can place new signups into.  If you have people in your Left-Leg, you are able to see everyone in THEIR left leg as well.  If you have people in your Right-Leg, you can see everyone in THEIR Right-Leg as well.  However, it doesn't stop here.  There is no limitation as to how far down the tree can go; even people who are 50+ members removed from you (someone who signed up under you got a signup and they got a signup and that signup got a signup, etc...).

The way I've organized the system is that everyone is given a member number, a leg number, and a sponsor number.  The member number is an auto-incrementing field, the leg number is either a 0 for left or a 1 for right leg, and the sponsor number is the member number of the person above you.  I also have a signup_date field to track signups (however member numbers work fine for this since they always grow larger).

I'm running into two issues.
1)  Coding this to print using 'while' statement seems to work until you realize that it has to eventually change from member to member and after the first level, the sponsor number changes and I loose the 'while' statement.  I also need to be careful because not all members who have a higher member number than you are under you, so each level has to be specificly tied to the previous sponsor number.

2)  Coding this to show up as a sequentially growing tree is an issue.  Even if I get the code working correctly, it needs to 'look' like a tree system and I'm not doing a good job.  I was trying to figure out how to use an 'if' statement to force members of members to show up offset to either side (left or right respectively) whenever the 'while' statement hit them while members directly below show up directly under their respective sponsor.

I'm a bit over my head.  Any suggestions?Start Free Trial
[+][-]08.25.2008 at 01:26PM PDT, ID: 22308946

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 01:32PM PDT, ID: 22309004

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 03:11PM PDT, ID: 22309738

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, MySQL Server
Tags: PHP MySQL
Sign Up Now!
Solution Provided By: mankowitz
Participating Experts: 1
Solution Grade: B
 
 
[+][-]08.26.2008 at 08:22AM PDT, ID: 22315778

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628