Solved

mlm script

Posted on 2009-07-01
5
409 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now