Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mlm script

Posted on 2009-07-01
5
Medium Priority
?
448 Views
Last Modified: 2012-05-07
hi experts can u give the script that generates the binary trees whenthe menber is registered. like if there are 10 members. if the new user registers under 5th memner named jarry, then there comes one child under jarry. if the user named yogesh registers two subchild then these two comes under yogesh, like this the pattern and record should be saved in the database and fetch from the database.

it is similar to mlm (multi level marketing project) script  or if there is any open source scipt that would help me doing this.
0
Comment
Question by:designersx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 24

Accepted Solution

by:
mankowitz earned 750 total points
ID: 24753611
This is relatively straighforward. In your user table, make sure you have a column called 'parent', and populate that with the id number of the parent. For example

USERS
id     parent     name      
1       0            yogesh
2       1            joe
3       1            fred
4       3            arnold
5       0            jarry

When a new person (let's call him mark) registers, he would list jarry (id=5) as his parent.

In MySQL, you would have something like
INSERT INTO users (parent, name) VALUES (5, 'mark');

If you want to show all the children of yogesh, you would do this
SELECT * FROM users WHERE parent=1
0
 

Author Comment

by:designersx
ID: 24754824
yes u r right
0
 

Author Comment

by:designersx
ID: 24760600
you have given me a good logic but i don't need to do it that way.

there are paid scripts on the internet that are specifically related to multi level marketing projects scripts, that i want to know which is the best script.

i just want to find the best script on the internet for this , if that is paid no probs. so ,please give me the best link to implement the mlm concept.
0
 

Author Comment

by:designersx
ID: 24760619
if u could find for open source mlm script that would be really great
0
 
LVL 24

Expert Comment

by:mankowitz
ID: 24762451
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question