Solved

mlm script

Posted on 2009-07-01
5
426 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
  • 3
  • 2
5 Comments
 
LVL 24

Accepted Solution

by:
mankowitz earned 250 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

861 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