Solved

mlm script

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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 …
This article discusses how to implement server side field validation and display customized error messages to the client.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…

630 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