Documente Academic
Documente Profesional
Documente Cultură
Abstracts must include sufficient information for reviewers to judge the nature and
significance of the topic, the adequacy of the investigative strategy, the nature of the results,
and the conclusions. The abstract should summarize the substantive results of the work and
not merely list topics to be discussed.
An abstract is an outline/brief summary of your paper and your whole project. It should have
an intro, body and conclusion. It is a well-developed paragraph, should be
exact in wording, and must be understandable to a wide audience. Abstracts should be no more
than 250 words, formatted in Microsoft Word, and single-spaced, using size 12 Times New
Roman font.
Abstracts highlight major points of your research and explain why your work is important;
what your purpose was, how you went about your project, what you learned, and what you
concluded.
If your title includes scientific notation, Greek letters, bold, italics, or other
special characters/symbols, do make sure they appear correctly.
List all additional undergraduate co-authors, whether they are or are not presenting,
if applicable.
GRADUATE LEVEL
Presentation Title: MULTI-LEVEL MARKETING
School: INTEGRAL UNIVERSITY LUCKNOW
Student Level: Bachelor of Computer Application
Page | 1
Introduction
Multilevel Marketing System
Multilevel Marketing System is a Network Marketing System and a robust web-based software
system with all the features necessary to run a successful MLM company. A system
administration module will be developed for the administrator of Multi Level Marketing
System. This system will have the facilities like logical access management or LAM, included
user administration and manage products.
Modules
Search and Manage Member, Managing Transaction
An enhanced atomized online system is developed to maintain Members, Products, Member
Chain, Transaction.
• System user can add new member and link the referrer to the new member for maintain the
tree like hierarchy of member chain.
• System User can sale the products to the members.
• The supervisor will be able to Add, Edit and search the member details.
• All transaction like sale and purchase any modification of product details, member profile are
stored and can be retrieved as and when required.
• Design the system for support very large data and can handle huge database size and
concurrent users without performance degrading.
• Maintain the user master and security features.
System Administration
A system administration module will be developed for the administrator of Multi Level
Marketing System. This system will have the facilities like logical access management or LAM,
included user administration and manage products.
The Web-based System Administration Module will include the following features:
• Can manage Logical Access Management – LAM
• The System Administrator can able to add, modify system users, and also set the rights and
privileges to particular system resources to particular user.
• Can able to manage product details.
• Can modify any transaction.
• Can view any reports
Technology Used
PHP, CSS,BOOTSTRAP,JAVASCRIPT,SQL Server
Page | 2
H/W
Ram 4Gb
Hardisk 500Gb
Advantages
Disadvantages
Referrals have to invest their money first and sometimes the referred persons may not wish to buy
the product.
Companies get their income from newcomers; hence there are no actual sales.
The strategy can produce tentative results.
Hello everyone welcomes to MLM website tutorial using PHP and Mysql. In this series, I am
going to teach you how to create MLM website step by step. So you need to understand it from
the scratch. First I will tell you that which plan I am using to create this website. We all know
there are too many plans in MLM like matrix plan, board plan, party plan, hybrid plan,
generation plan and so on. So it is not possible to create the tutorial for all the plans but if I feel
it require then I will create it for you. Only you need to inform me using comment or mail. So
we will teach in this tutorial about the binary plan. How it works.
Page | 3
Binary Plan(1*2)
Binary plan is the basic plan in MLM. A user sells a product to two users and joins them to his
downline and he gets paid. For this, he needs to create pairs. When one user in the left side and
another user in right side then we call it a pair. Per pair, a user gets some income. We can more
understand this plan in the video. You need to watch it so that you should about to know what
we going to create.
DFD of MLM
Page | 4
In this tutorial, we will download our template so that we can directly start our coding part.
For this, you can download any template or you can use your own template whatever you want.
I am going to download bootstrap admin template from the below link.
Diagram
In this tutorial, we will create our index and home page. So that a user can log in to his account
and access his home page. To this, you have the following steps.
Open your mlm folder that we have created in our second tutorial.
Go to pages.
Copy login.html and blank.html to outside this folder.
Open both files in an editor and save login page as index.php and save blank page as
home.php.
Page | 5
So finally we have created o
<!DOCTYP
E html>
<html lang="en">
<head>
<meta charset="utf-8">
Page | 6
<meta name="author" content="">
<link rel="stylesheet"
href="http://localhost/test/member/assets/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
href="http://localhost/test/member/assets/plugins/scrollbar/css/jquery.mCustomScrollbar.c
ss">
Page | 7
<link rel="stylesheet" href="http://localhost/test/member/assets/css/pages/log-reg-v3.css">
</head>
<body class="header-fixed">
<div class="wrapper">
<div class="topbar-v3">
<div class="container">
<div class="row">
</div>
</div>
Page | 8
</div>
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</a>
</div>
Page | 9
<div class="badge-open">
<div class="subtotal">
<div class="row">
<div class="col-xs-12"><br>
Support Ticket</a><br><br>
</div>
<div class="col-xs-12">
Change Password</a><br><br>
</div>
<div class="col-xs-12">
Edit Profile</a><br><br>
</div>
<div class="col-xs-12">
</div>
</div>
Page | 10
</div>
</div>
</div>
<li><a href="http://localhost/test/member/dashboard">Dashboard</a></li>
<li class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li class="dropdown">
<ul class="dropdown-menu">
Page | 11
<li><a href="http://localhost/test/member/BinaryBonus">Binary commission</a></li>
In this tutorial, we shall create our dynamic menu to avoid code duplicity and make it simple. If
we will not make it dynamic then we need to create the menu for every page and whenever any
changes occur in the menu then we need to change in all the pages one by one.
First, delete all the extra menu from the template that we do not want.
Create a folder php-includes, so we can put our all the included file in one folder.
Now create a file menu.php and save it within php-includes folder.
Copy the menu content and paste it to menu.php.
Now include the menu.php to all the pages where we need the menu.
Great!!! it's done. Now we have our own dynamic menu.
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">SB Admin v2.0</a>
Page | 12
</div>
<!-- /.navbar-header -->
<ul class="nav navbar-top-links navbar-right">
<!-- /.dropdown -->
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-message">
<li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
<ul class="nav" id="side-menu">
<li>
<a href="home.php"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
</li>
<li>
<a href="pin-request.php"><i class="fa fa-adjust fa-fw"></i> Pin Request</a>
</li>
<li>
<a href="pin.php"><i class="fa fa-adjust fa-fw"></i>View Pin</a>
</li>
<li>
<a href="join.php"><i class="fa fa-adjust fa-fw"></i>Join User</a>
</li>
Page | 13
Connect to Database
In this tutorial, we will create a connection to connect to the database. For this, we will create a
database and will create tables and then we will create a connection code.
Page | 14
if(mysqli_connect_error()){
echo 'connect to database failed';
}
?>
Create Admin
So now we have done with some useful functionality like user login, pin request etc. The user
can send the pin request, and it should be first approved by the admin then the pin will be
available to the user. For this, we need an admin panel that can handle all the things like
manage pin request, view pin request history, make payment to user and lot of things.
I hope you can now understand the importance of the admin panel. You can say it is the
backbone of our MLM Website that manages the all activity over user action.
Then waiting for what, let's start with the admin panel.
Create a folder admin. You can create your own folder name but if you are completely following
this series then you should do all the things same. Although later you should change the folder
name and other things also. Because if you will put all the things same as described in the
tutorial then the chances of hacking increase for your website. Because hacker will know already
that what code you have. So be secure.
Copy all the necessary files and folder as shown in videos to your newly created folder admin.
Create a table in database admin and take 3 attributes like id, user id, password.
Need to make some changes in login page of the admin.
That's great. Now you have your own admin panel.
<li class="dropdown">
<ul class="dropdown-menu">
Page | 15
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="breadcrumbs-v4">
<div class="container">
<span class="page-name"> </span>
</div><!--/end container-->
</div>
<div class="container">
Page | 16
<div class="row">
<div class="row">
You will Get $ 10 USD When any of Your Referral Upgrade To Premium Account <br>
You will Get $ 0.33 USD When any of Your Below Tree Member Upgrade To Premium Account <br>
</div>
</div>
<div class="row">
</div>
</div>
</div>
</div>
Page | 17
<div style="margin-top:30px;"></div>
<div class="row">
</div>
</div>
</div>
</div>
<div style="margin-top:30px;"></div>
<div class="row">
</div>
Page | 18
class="fa fa-repeat fa-5x"></i><i class="fa fa-dollar fa-5x"></i><br> Withdraw Fund</a>
</div>
</div>
</div>
</div><!--/end row-->
</div><!--/end container-->
</div>
<div style="margin-top:230px;"></div>
<div class="footer-v4">
<!--div class="footer">
<div class="container">
<div class="row">
<p>About Unify dolor sit amet, consectetur adipiscing elit. Maecenas eget nisl id libero tincidunt
sodales.</p>
Page | 19
<br>
</ul>
</ul>
</div>
</div>
Page | 20
Login to System
In this tutorial, we will create a login script. So that user can log in to his account. This is an
important phase of the project, where a user will try to open their account. So it should be very
secure because we don't want that any user can access any other user's data. So let's start the
process.
Page | 21
}
?>
<section>
<div class="input-group">
</div>
</section>
Page | 22
<section>
<div class="input-group">
</div>
</section>
<div class="col-xs-6">
<label class="checkbox">
<i></i>
Remember me
</label>
</div>
</div>
</div>
<div id="working"></div>
<div id="error">
Page | 23
<!-- error will be shown here ! -->
</div>
</div>
</form>
<div class="margin-bottom-20"></div>
</div>
Create Logout
In this tutorial, we will create a logout script. So that user can log out of his account. When
logging out, you need to destroy all sessions, so that next time user needs to log in again with
his/her user id and password.
Create a table pin_request and take four attributes here like id, email, amount, and date.
Now create a page pin-request.php.
Copy and paste the below code.
<div class="row">
<div class="col-md-12">
<div class="form-group">
<input class="form-control input-lg" placeholder="Current PIN" name="cpin"
Page | 25
type="password">
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input class="form-control input-lg" placeholder="New PIN" name="npin" type="password"
required="">
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input class="form-control input-lg" placeholder="New PIN Again" name="nnpin"
type="password" required="">
</div>
</div>
<div class="col-md-12">
<button type="submit" class="btn btn-success btn-block"> Change PIN </button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div><!--/end row-->
</div><!--/end container-->
</div>
<!--=== End Registre ===-->
Page | 26
<div class="footer-v4">
<!--div class="footer">
<div class="container">
<div class="row">
<div class="col-md-4 md-margin-bottom-40">
<a href="index.html"><img class="footer-logo" src="assets/img/logo-2.png" alt=""></a>
<p>About Unify dolor sit amet, consectetur adipiscing elit. Maecenas eget nisl id libero
tincidunt sodales.</p>
<br>
<ul class="list-unstyled address-list margin-bottom-20">
<li><i class="fa fa-angle-right"></i>California, US, Lorem Lis Street, Orange, 25</li>
<li><i class="fa fa-an
<?php
require('php-includes/connect.php');
include('php-includes/check-login.php');
$email = $_SESSION['userid'];
?>
<?php
//pin request
if(isset($_GET['pin_request'])){
$amount = mysqli_real_escape_string($con,$_GET['amount']);
Page | 27
$date = date("y-m-d");
if($amount!=''){
//Inset the value to pin request
$query = mysqli_query($con,"insert into pin_request(`email`,`amount`,`date`)
values('$email','$amount','$date')");
if($query){
echo '<script>alert("Pin request sent successfully");window.location.assign("pin-
request.php");</script>';
}
else{
//echo mysqli_error($con);
echo '<script>alert("Unknown error occure.");window.location.assign("pin-
request.php");</script>';
}
}
else{
echo '<script>alert("Please fill all the fields");</script>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Mlml Website - Pin Request</title>
<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
Page | 28
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<?php include('php-includes/menu.php'); ?>
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Pin Request</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-4">
<form method="get">
<div class="form-group">
<label>Amount</label>
<input type="text" name="amount" class="form-control" required>
</div>
<div class="form-group">
<input type="submit" name="pin_request" class="btn btn-primary" value="Pin Request">
</div>
</form>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="vendor/metisMenu/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
Page | 29
<script src="dist/js/sb-admin-2.js"></script>
</body>
</html>
<?php
require('php-includes/connect.php');
include('php-includes/check-login.php');
$email = $_SESSION['userid'];
?>
<?php
//pin request
if(isset($_GET['pin_request'])){
$amount = mysqli_real_escape_string($con,$_GET['amount']);
$date = date("y-m-d");
if($amount!=''){
//Inset the value to pin request
$query = mysqli_query($con,"insert into pin_request(`email`,`amount`,`date`)
values('$email','$amount','$date')");
if($query){
Page | 30
echo '<script>alert("Pin request sent successfully");window.location.assign("pin-
request.php");</script>';
}
else{
//echo mysqli_error($con);
echo '<script>alert("Unknown error occure.");window.location.assign("pin-
request.php");</script>';
}
}
else{
echo '<script>alert("Please fill all the fields");</script>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Mlml Website - Pin Request</title>
<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<?php include('php-includes/menu.php'); ?>
Page | 31
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Pin Request</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-4">
<form method="get">
<div class="form-group">
<label>Amount</label>
<input type="text" name="amount" class="form-control" required>
</div>
<div class="form-group">
<input type="submit" name="pin_request" class="btn btn-primary" value="Pin Request">
</div>
</form>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<br><br>
<table class="table table-bordered table-striped">
<tr>
<th>S.n.</th>
<th>Amount</th>
<th>Date</th>
<th>Status</th>
</tr>
<?php
$i=1;
$query = mysqli_query($con,"select
* from pin_request where email='$email' order by id desc");
if(mysqli_num_rows($query)>0){
while($row=mysqli_fetch_array($query)){
$amount =
$row['amount'];
$date =
$row['date'];
$status =
$row['status'];
?>
<tr>
<td><?php echo $i; ?></td>
Page | 32
<td><?php echo $amount; ?></td>
<td><?php echo $date; ?></td>
<td><?php echo $status; ?></td>
</tr>
<?php
$i++;
}
}
else{
?>
<tr>
<td colspan="4">You have no pin request yet.</td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="vendor/metisMenu/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="dist/js/sb-admin-2.js"></script>
</body>
</html>
Note - Here I stored password as simple text but in the live project you should store the password, that
encrypted with md5 or SHA1 or any other encryption method.
Page | 33
Stop Unauthorized Access to Admin Area
Admin and user both can log in to their account. When a user login we check the user id and
password and if correct then logged in.
But now if a user is logged in with his user id and password then he can access the admin area
by using URL.
Because we are just checking the login authentication, that's it. So we need to stop a user to
access the admin area by using URL.
<!--
Topbar
v3 -->
Page | 34
<div class="topbar-v3">
<div class="container">
<div class="row">
</div>
</div>
</div>
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
Page | 35
<img id="logo-header" src="http://localhost/test/member/assets/img/logo.png" alt="Logo">
</a>
</div>
<div class="badge-open">
<div class="subtotal">
<div class="row">
<div class="col-xs-12"><br>
Support Ticket</a><br><br>
</div>
<div class="col-xs-12">
Change Password</a><br><br>
</div>
To view the pin request will create a table similar to user panel. But in this table admin will
have the option to either send the pin or cancel the request depending on the payment status or
Page | 36
whatever admin have criteria to accept the pin request, it's all up to your requirements. So let's
start.
Create a page view-pin-request.php. You can copy the admin's home page and rename it.
Now take 6 column attributes like S.n, Userid, Amount, Date, Send and Cancel.
Run PHP query to fetch all the request.
Understand the code from the video and you can copy the code, given below.
<?php
include('php-includes/check-login.php');
include('php-includes/connect.php');
$product_amount = 300;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
Page | 37
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="wrapper">
<div id="page-wrapper">
<div class="container-fluid">
Page | 38
<div class="row">
<div class="col-lg-12">
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="table-responsive">
<tr>
<th>S.n.</th>
<th>Userid</th>
<th>Amount</th>
<th>Date</th>
<th>Send</th>
<th>Cancel</th>
</tr>
<?php
if(mysqli_num_rows($query)>0){
$i=1;
while($row=mysqli_fetch_array($query)){
$id = $ro
$email =
$amount
$date = $
?>
Page | 39
<tr>
<td>Send</td>
<td>Cancel</td>
</tr>
<?php
$i++;
}
}
else{
?>
<tr>
</tr>
<?php
}
?>
</table>
</div><!--/.table-responsive-->
</div>
</div><!--/.row-->
</div>
</div>
</div>
Page | 40
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/metisMenu/metisMenu.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
</body>
</html>
For example in this project our product cost or one pin cost is Rs. 300. So we will divide the
total amount with the 300 and get the number of pins.
After knowing the number of pins, we need to run a loop for each pin that will generate each
time an unique pin and will store in the SQL
Page | 41
table pin_list.
After sending the all pin, need to change the status of the pin request to close.
Great!!! Now admin can send the pin to a user. You can say we have done with a very first
major part of the MLM website. In the next few chapters, it will become more interesting when
you will be able to join a user to the MLM website and will view the tree. That is amazing.
Page | 42
User View Pin
In the last tutorial, admin sent the pin successfully to the user against his request. So user now
wants to view all that pin that he has and can use to join other users.
The pin, the user will see those should be open, means it shouldn't use before. One pin can be
used only once.
Page | 43
<div
class="header-v5
header-static">
<div class="topbar-v3">
<div class="container">
<div class="row">
</div>
</div>
</div>
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
Page | 44
<span class="icon-bar"></span>
</button>
</a>
</div>
<div class="badge-open">
<div class="subtotal">
<div class="row">
<div class="col-xs-12"><br>
Support Ticket</a><br><br>
</div>
<div class="col-xs-12">
Change Password</a><br><br>
Page | 45
</div>
<div class="col-xs-12">
Edit Profile</a><br><br>
</div>
<div class="col-xs-12">
</div>
</div>
</div>
</div>
</div>
<li><a href="http://localhost/test/member/dashboard">Dashboard</a></li>
<li class="dropdown">
<ul class="dropdown-menu">
Page | 46
<li><a href="http://localhost/test/member/BinarySummery">Binary
Summery</a></li>
</ul>
</li>
<li class="dropdown">
<ul class="dropdown-menu">
<li><a href="http://localhost/test/member/ReferralBonus">Referral
Commission</a></li>
<li><a href="http://localhost/test/member/BinaryBonus">Binary
commission</a></li>
Admin User
Now we are ready to start our main work or you can say this is the heart of the MLM website. So here
we can not do any mistake. You do a single mistake here and your MLM website goes down. Be careful
from here. Seriously this is the most importation things in MLM to join a user.
Because all the calculation will be done here so if any error occurs at runtime then it will be
very costly for you. So let's start.
Page | 47
<ul class="nav navbar-nav">
<li><a href="http://localhost/test/member/dashboard">Dashboard</a></li>
<li class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li class="dropdown">
<ul class="dropdown-menu">
</ul>
</li>
<li class="dropdown">
Page | 48
Finance [ 1405.7 €]</a>
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="breadcrumbs-v4">
<div class="container">
<span class="page-name"> </span>
Page | 49
</div><!--/end container-->
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="form-group">
</div>
</div>
<div class="col-md-3">
</div>
</div>
</div>
Page | 50
</form>
<div style="margin-top:100px;"></div>
<div class="col-xs-12">
<!--==================ROOT==================-->
<div class="row">
admin<div class="userInfo">
<div class="panel-heading"><a
href='http://localhost/test/member/Tree/admin'><h1>admin</h1></a></div>
<div class="panel-body">
Page | 51
Create a page join.php.
Create a table in database user with 6 attributes like id, email, password, address, and account.
Although you can add other attributes also, depending on your requirements.
Now create an HTML table and take 5 input box for the above attributes.
Create the join script and fetch all the input data to PHP.
Page | 52
Join User (a)
In the last chapter, we forgot to take two other important input box that
is under_userid and side. New user will join under the under_userid and the side(left or
right).
In this chapter and all the part of chapter 16, we will do some task step by step. For this
chapter, the task is to check the valid pin.
Create a function pin_check($pin) that will take one variable that is a pin.
Check if this pin is available.
Then the owner of this pin should be the logged user.
And the final condition is that the status of the pin should be open. So that every pin can use
only once.
function pin_check($pin){
global $con,$userid;
Page | 53
if(mysqli_num_rows($query)>0){
return true;
}
else{
return false;
}
}
Email ID/User ID
The email id should be available in the system already. Because on our MLM website the
unique id of all users is email id. So that it should be unique to identify each user. In this
system, you can not change the email id of a user in the future, because this email id will use
everywhere in the database. You should remember whenever creates live project don't take
email id as a unique id. In that case, you can create a random, unique number for every user so
that if need to change the email id of any user in the future, you could be able to do it.
Under User ID
The under user id should be already available in the system. So that the new user can join him.
If the under user id will not be available, then the new user cannot join because every user
needs a parent user. Like every child need a parent to be in the world.
Even the top user of the system will also have a parent id that we will feed manually for the
first time.
Page | 54
Join User ©
Check Space
It is the time to check the space that it is available or not. The new user that we will join a
parent user and the side that we select, at that position, no user should available already. For
this, we will create a function that will return true or false for space. First, we will create a
table tree` to store all the tree structure information.
Page | 55
function side_check($email,$side){
global $con;
Features
Hello everyone welcomes to MLM website tutorial using PHP and Mysql. In this series, I am
going to teach you how to create MLM website (Matrix Plan 1X3) step by step. So you need to
understand it from the scratch.
Page | 56
Matrix Plan(1*3)
Matrix plan is one of the most existing plans in the market. We all know that MLM plans
shutdowns very quickly due to very less income as the tree grow. But this is the plan that never
ends. A plan that runs with matrix plan 1X3, has very fewer chances to shut down.
So let's start the scheme. In this series, our product price will be Rs. 2000. And there will be
two types of income.
Now let's talk about the users. First Level will have 3 users, the second level will have 9 users
and the third level will have 27 users. Thus each level's users increase by multiple of 3. And
these levels will never end
Binary Template
Now we will download a bootstrap admin template. It is very good and saves our time to
design all the things. You can use any design and template.Â
Page | 57
I prefer you to download this template because this will be very easy for you to follow the
complete tutorial. This is not a one or two-day tutorial. It can be a one-month tutorial. So this
will be very good for you to follow all the steps, if you choose your own template then maybe
in somewhere you will phase errors as many users got in my previous series.
Page | 58
Biodata
Group Member 1:
Jisan Ahmad
E-Mail: jisan@iul.ac.in
Academic Qualification:-
Mini Project:-
The Topic of my Mini Project was “Hospital Managment” with visual basics as Front end and
Access a Back end.
Personal Details:-
Place: Lucknow
Page | 59
Biodata
Group Member 2:
Faizur Rahman
E-Mail: faizur@iul.ac.in
kapoorthala Lucknow
Academic Qualification:-
Mini Project:-
The Topic of my Mini Project was “Food supply management System” with visual basics as
Front end and Access a Back end.
Personal Details:-
Place: Lucknow
Page | 60