Solved

mlm script

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

707 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

12 Experts available now in Live!

Get 1:1 Help Now