Sie sind auf Seite 1von 101

Last two weeks I was quite busy with projects and hardly had any spare time left

for writing blogs. I had a huge backlog of mails requesting for tutorials. One thing
I found common among them was creating a multi user role based admin feature.
I googled for the article so I can give them links but I was not able to find useful
tutorial. So i decided to make it myself for my readers. In this tutorial I will be
Creating multi user role based admin using php mysql and bootstrap library.

TRENDING
BloodUnison – Blood donors meet receivers

Search...
Facebook Fan PageTwitter HandleLinkedInYoutubeRSS
thesoftwareguy.in
thesoftwareguy.in shop
HomePHP
Snippet
Patterns & SeriesJqueryShopProjects & Demos
About Me

YOU ARE AT:Home»PHP»Creating multi user role based admin using php mysql and bootstrap
Creating multi user role based admin using php mysql and bootstrap
Creating multi user role based admin using php mysql and bootstrap 189
BY SHAHRUKH KHAN ON NOVEMBER 20, 2014 PHP
Last two weeks I was quite busy with projects and hardly had any spare time left for writing blogs. I had
a huge backlog of mails requesting for tutorials. One thing I found common among them was creating a
multi user role based admin feature. I googled for the article so I can give them links but I was not able
to find useful tutorial. So i decided to make it myself for my readers. In this tutorial I will be Creating
multi user role based admin using php mysql and bootstrap library.

View Demo
What is multi user role based admin?
For novice users let me explain what this article is all about. Suppose you have an online inventory store.
You have multiple employee each has their specific roles. i.e some person are responsible for feeding
data (Data Operator), some are responsible for customer support and some for sales. In this case you
don’t want all your modules/data to be available to every one of them. So what you have to do is to
assign a role to them, and then they will have the privilege to access limited data only.

In this tutorial I am not going to make a full fledged admin panel. I will show the trick using mysql
database and php logic to create multi user admin. Follow the steps below.

Step 1. Create a database and add modules,system users, role and their rights.
The first step is to create a database. I have created a database named multi-admin. Create some
modules that you will be using in your application. Check the sample sql below.
CREATE DATABASE `multi-admin`;
USE `multi-admin`;

CREATE TABLE IF NOT EXISTS `module` (


`mod_modulegroupcode` varchar(25) NOT NULL,
`mod_modulegroupname` varchar(50) NOT NULL,
`mod_modulecode` varchar(25) NOT NULL,
`mod_modulename` varchar(50) NOT NULL,
`mod_modulegrouporder` int(3) NOT NULL,
`mod_moduleorder` int(3) NOT NULL,
`mod_modulepagename` varchar(255) NOT NULL,
PRIMARY KEY (`mod_modulegroupcode`,`mod_modulecode`),
UNIQUE(`mod_modulecode`)
) ENGINE=INNODB DEFAULT CHARSET=utf8;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

CREATE DATABASE `multi-admin`;


USE `multi-admin`;

CREATE TABLE IF NOT EXISTS `module` (


`mod_modulegroupcode` varchar(25) NOT NULL,
`mod_modulegroupname` varchar(50) NOT NULL,
`mod_modulecode` varchar(25) NOT NULL,
`mod_modulename` varchar(50) NOT NULL,
`mod_modulegrouporder` int(3) NOT NULL,
`mod_moduleorder` int(3) NOT NULL,
`mod_modulepagename` varchar(255) NOT NULL,
PRIMARY KEY (`mod_modulegroupcode`,`mod_modulecode`),
UNIQUE(`mod_modulecode`)
) ENGINE=INNODB DEFAULT CHARSET=utf8;
Once you have created modules table, feed some data into it. I have used purchases, sales, stocks and
Shipping, payment and taxes. So there are 6 modules in two groups.
INSERT INTO module (mod_modulegroupcode, mod_modulegroupname, mod_modulecode,
mod_modulename, mod_modulegrouporder, mod_moduleorder, mod_modulepagename) VALUES
("INVT","Inventory", "PURCHASES","Purchases", 2, 1,'purchases.php'),
("INVT","Inventory", "STOCKS","Stocks", 2, 2,'stocks.php'),
("INVT","Inventory", "SALES","Sales", 2, 3,'sales.php'),
("CHECKOUT","Checkout","SHIPPING","Shipping", 3, 1,'shipping.php'),
("CHECKOUT","Checkout","PAYMENT","Payment", 3, 2,'payment.php'),
("CHECKOUT","Checkout","TAX","Tax", 3, 3,'tax.php');
2
3
4
5
6
7
8
9

INSERT INTO module (mod_modulegroupcode, mod_modulegroupname, mod_modulecode,


mod_modulename, mod_modulegrouporder, mod_moduleorder, mod_modulepagename) VALUES
("INVT","Inventory", "PURCHASES","Purchases", 2, 1,'purchases.php'),
("INVT","Inventory", "STOCKS","Stocks", 2, 2,'stocks.php'),
("INVT","Inventory", "SALES","Sales", 2, 3,'sales.php'),
("CHECKOUT","Checkout","SHIPPING","Shipping", 3, 1,'shipping.php'),
("CHECKOUT","Checkout","PAYMENT","Payment", 3, 2,'payment.php'),
("CHECKOUT","Checkout","TAX","Tax", 3, 3,'tax.php');
Create roles that will be assigned to the admins.

CREATE TABLE IF NOT EXISTS `role` (


`role_rolecode` varchar(50) NOT NULL,
`role_rolename` varchar(50) NOT NULL,
PRIMARY KEY (`role_rolecode`)
) ENGINE=INNODB DEFAULT CHARSET=utf8;

INSERT INTO `role` (`role_rolecode`, `role_rolename`) VALUES


('SUPERADMIN', 'Super Admin'),
('ADMIN', 'Administrator');
2
3
4
5
6
7
8
9
10
11

CREATE TABLE IF NOT EXISTS `role` (


`role_rolecode` varchar(50) NOT NULL,
`role_rolename` varchar(50) NOT NULL,
PRIMARY KEY (`role_rolecode`)
) ENGINE=INNODB DEFAULT CHARSET=utf8;

INSERT INTO `role` (`role_rolecode`, `role_rolename`) VALUES


('SUPERADMIN', 'Super Admin'),
('ADMIN', 'Administrator');
Add system user/admin who will manage the application. Assign each admin with a role.

CREATE TABLE IF NOT EXISTS `system_users` (


`u_userid` int(11) AUTO_INCREMENT NOT NULL,
`u_username` varchar(100) NOT NULL,
`u_password` varchar(255) NOT NULL,
`u_rolecode` varchar(50) NOT NULL,
PRIMARY KEY (`u_userid`),
FOREIGN KEY (`u_rolecode`) REFERENCES `role` (`role_rolecode`) ON UPDATE CASCADE ON DELETE
RESTRICT
) ENGINE=INNODB DEFAULT CHARSET=utf8;

INSERT INTO `system_users` (`u_username`, `u_password`, `u_rolecode`) VALUES


('shahrukh', '123456', 'SUPERADMIN'),
('ronaldo', 'ronaldo', 'ADMIN');
2
3
4
5
6
7
8
9
10
11
12
13
14

CREATE TABLE IF NOT EXISTS `system_users` (


`u_userid` int(11) AUTO_INCREMENT NOT NULL,
`u_username` varchar(100) NOT NULL,
`u_password` varchar(255) NOT NULL,
`u_rolecode` varchar(50) NOT NULL,
PRIMARY KEY (`u_userid`),
FOREIGN KEY (`u_rolecode`) REFERENCES `role` (`role_rolecode`) ON UPDATE CASCADE ON DELETE
RESTRICT
) ENGINE=INNODB DEFAULT CHARSET=utf8;

INSERT INTO `system_users` (`u_username`, `u_password`, `u_rolecode`) VALUES


('shahrukh', '123456', 'SUPERADMIN'),
('ronaldo', 'ronaldo', 'ADMIN');
The final step is to give each role the privilege to access modules. I have used 4 options i.e create, edit,
view and delete.

INSERT INTO `role_rights` (`rr_rolecode`, `rr_modulecode`, `rr_create`, `rr_edit`, `rr_delete`, `rr_view`)


VALUES
('SUPERADMIN', 'PURCHASES', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'STOCKS', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'SALES', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'SHIPPING', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'PAYMENT', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'TAX', 'yes', 'yes', 'yes', 'yes'),

('ADMIN', 'PURCHASES', 'yes', 'yes', 'yes', 'yes'),


('ADMIN', 'STOCKS', 'no', 'no', 'no', 'yes'),
('ADMIN', 'SALES', 'no', 'no', 'no', 'no'),
('ADMIN', 'SHIPPING', 'yes', 'yes', 'yes', 'yes'),
('ADMIN', 'PAYMENT', 'no', 'no', 'no', 'yes'),
('ADMIN', 'TAX', 'no', 'no', 'no', 'no');
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

INSERT INTO `role_rights` (`rr_rolecode`, `rr_modulecode`, `rr_create`, `rr_edit`, `rr_delete`, `rr_view`)


VALUES
('SUPERADMIN', 'PURCHASES', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'STOCKS', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'SALES', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'SHIPPING', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'PAYMENT', 'yes', 'yes', 'yes', 'yes'),
('SUPERADMIN', 'TAX', 'yes', 'yes', 'yes', 'yes'),

('ADMIN', 'PURCHASES', 'yes', 'yes', 'yes', 'yes'),


('ADMIN', 'STOCKS', 'no', 'no', 'no', 'yes'),
('ADMIN', 'SALES', 'no', 'no', 'no', 'no'),
('ADMIN', 'SHIPPING', 'yes', 'yes', 'yes', 'yes'),
('ADMIN', 'PAYMENT', 'no', 'no', 'no', 'yes'),
('ADMIN', 'TAX', 'no', 'no', 'no', 'no');
Step 2. Create files for every single modules.
This step is very easy. You have to create files for each modules based on names you have given in the
database (module table). Apart from the 6 pages that are given the database, you have to create 3 more
pages viz. login.php (user will login), dashboard.php (user will see the menu/modules), and logout.php
(to clear the session).

Step 3. Creating login form.


If you have followed my earlier tutorials, you should know that I use PDO classes to access the database.
If you are new to PDO classes try learning it from a sample mini-project Simple address book with php
and mysql using pdo.

<form class="form-horizontal" name="contact_form" id="contact_form" method="post" action="">


<input type="hidden" name="mode" value="login" >

<fieldset>
<div class="form-group">
<label class="col-lg-2 control-label" for="username"><span
class="required">*</span>Username:</label>
<div class="col-lg-6">
<input type="text" value="" placeholder="User Name" id="username" class="form-
control" name="username" required="" >
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label" for="user_password"><span
class="required">*</span>Password:</label>
<div class="col-lg-6">
<input type="password" value="" placeholder="Password" id="user_password"
class="form-control" name="user_password" required="" >
</div>
</div>

<div class="form-group">
<div class="col-lg-6 col-lg-offset-2">
<button class="btn btn-primary" type="submit">Submit</button>
</div>
</div>
</fieldset>
</form>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

<form class="form-horizontal" name="contact_form" id="contact_form" method="post" action="">


<input type="hidden" name="mode" value="login" >

<fieldset>
<div class="form-group">
<label class="col-lg-2 control-label" for="username"><span
class="required">*</span>Username:</label>
<div class="col-lg-6">
<input type="text" value="" placeholder="User Name" id="username" class="form-
control" name="username" required="" >
</div>
</div>

<div class="form-group">
<label class="col-lg-2 control-label" for="user_password"><span
class="required">*</span>Password:</label>
<div class="col-lg-6">
<input type="password" value="" placeholder="Password" id="user_password"
class="form-control" name="user_password" required="" >
</div>
</div>

<div class="form-group">
<div class="col-lg-6 col-lg-offset-2">
<button class="btn btn-primary" type="submit">Submit</button>
</div>
</div>
</fieldset>
</form>
Create a file name config.php to set up basic configuration.

error_reporting( E_ALL &amp; ~E_DEPRECATED &amp; ~E_NOTICE );


ob_start();
session_start();

define('DB_DRIVER', 'mysql');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'root');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'multi-admin');

define('PROJECT_NAME', 'Create Multi admin using php mysql and bootstrap library');
$dboptions = array(
PDO::ATTR_PERSISTENT =&gt; FALSE,
PDO::ATTR_DEFAULT_FETCH_MODE =&gt; PDO::FETCH_ASSOC,
PDO::ATTR_ERRMODE =&gt; PDO::ERRMODE_EXCEPTION,
PDO::MYSQL_ATTR_INIT_COMMAND =&gt; 'SET NAMES utf8',
);

try {
$DB = new PDO(DB_DRIVER.':host='.DB_SERVER.';dbname='.DB_DATABASE, DB_SERVER_USERNAME,
DB_SERVER_PASSWORD , $dboptions);
} catch (Exception $ex) {
echo $ex-&gt;getMessage();
die;
}

require_once 'functions.php';

//get error/success messages


if ($_SESSION["errorType"] != "" &amp;&amp; $_SESSION["errorMsg"] != "" ) {
$ERROR_TYPE = $_SESSION["errorType"];
$ERROR_MSG = $_SESSION["errorMsg"];
$_SESSION["errorType"] = "";
$_SESSION["errorMsg"] = "";
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

error_reporting( E_ALL &amp; ~E_DEPRECATED &amp; ~E_NOTICE );


ob_start();
session_start();

define('DB_DRIVER', 'mysql');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'root');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'multi-admin');

define('PROJECT_NAME', 'Create Multi admin using php mysql and bootstrap library');
$dboptions = array(
PDO::ATTR_PERSISTENT =&gt; FALSE,
PDO::ATTR_DEFAULT_FETCH_MODE =&gt; PDO::FETCH_ASSOC,
PDO::ATTR_ERRMODE =&gt; PDO::ERRMODE_EXCEPTION,
PDO::MYSQL_ATTR_INIT_COMMAND =&gt; 'SET NAMES utf8',
);

try {
$DB = new PDO(DB_DRIVER.':host='.DB_SERVER.';dbname='.DB_DATABASE, DB_SERVER_USERNAME,
DB_SERVER_PASSWORD , $dboptions);
} catch (Exception $ex) {
echo $ex-&gt;getMessage();
die;
}

require_once 'functions.php';

//get error/success messages


if ($_SESSION["errorType"] != "" &amp;&amp; $_SESSION["errorMsg"] != "" ) {
$ERROR_TYPE = $_SESSION["errorType"];
$ERROR_MSG = $_SESSION["errorMsg"];
$_SESSION["errorType"] = "";
$_SESSION["errorMsg"] = "";
}
Validating user login using PHP

validating user loginPHP

$mode = $_REQUEST["mode"];
if ($mode == "login") {
$username = trim($_POST['username']);
$pass = trim($_POST['user_password']);

if ($username == "" || $pass == "") {

$_SESSION["errorType"] = "danger";
$_SESSION["errorMsg"] = "Enter manadatory fields";
} else {
$sql = "SELECT * FROM system_users WHERE u_username = :uname AND u_password = :upass ";

try {
$stmt = $DB->prepare($sql);
// bind the values
$stmt->bindValue(":uname", $username);
$stmt->bindValue(":upass", $pass);

// execute Query
$stmt->execute();
$results = $stmt->fetchAll();

if (count($results) > 0) {
$_SESSION["errorType"] = "success";
$_SESSION["errorMsg"] = "You have successfully logged in.";

$_SESSION["user_id"] = $results[0]["u_userid"];
$_SESSION["rolecode"] = $results[0]["u_rolecode"];
$_SESSION["username"] = $results[0]["u_username"];

redirect("dashboard.php");
exit;
} else {
$_SESSION["errorType"] = "info";
$_SESSION["errorMsg"] = "username or password does not exist.";
}
} catch (Exception $ex) {

$_SESSION["errorType"] = "danger";
$_SESSION["errorMsg"] = $ex->getMessage();
}
}
// redirect function is found in functions.php page
redirect("index.php");
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

$mode = $_REQUEST["mode"];
if ($mode == "login") {
$username = trim($_POST['username']);
$pass = trim($_POST['user_password']);

if ($username == "" || $pass == "") {

$_SESSION["errorType"] = "danger";
$_SESSION["errorMsg"] = "Enter manadatory fields";
} else {
$sql = "SELECT * FROM system_users WHERE u_username = :uname AND u_password = :upass ";

try {
$stmt = $DB->prepare($sql);

// bind the values


$stmt->bindValue(":uname", $username);
$stmt->bindValue(":upass", $pass);

// execute Query
$stmt->execute();
$results = $stmt->fetchAll();

if (count($results) > 0) {
$_SESSION["errorType"] = "success";
$_SESSION["errorMsg"] = "You have successfully logged in.";

$_SESSION["user_id"] = $results[0]["u_userid"];
$_SESSION["rolecode"] = $results[0]["u_rolecode"];
$_SESSION["username"] = $results[0]["u_username"];

redirect("dashboard.php");
exit;
} else {
$_SESSION["errorType"] = "info";
$_SESSION["errorMsg"] = "username or password does not exist.";
}
} catch (Exception $ex) {

$_SESSION["errorType"] = "danger";
$_SESSION["errorMsg"] = $ex->getMessage();
}
}
// redirect function is found in functions.php page
redirect("index.php");
}
Once you are logged in you are redirected to dashboard.php where you will see the menu/modules that
are assigned as per your role. Your role is saved in session when you are logged in.

// if the rights are not set then add them in the current session
if (!isset($_SESSION["access"])) {

try {

$sql = "SELECT mod_modulegroupcode, mod_modulegroupname FROM module "


. " WHERE 1 GROUP BY `mod_modulegroupcode` "
. " ORDER BY `mod_modulegrouporder` ASC, `mod_moduleorder` ASC ";

$stmt = $DB->prepare($sql);
$stmt->execute();
// modules group
$commonModules = $stmt->fetchAll();
$sql = "SELECT mod_modulegroupcode, mod_modulegroupname, mod_modulepagename,
mod_modulecode, mod_modulename FROM module "
. " WHERE 1 "
. " ORDER BY `mod_modulegrouporder` ASC, `mod_moduleorder` ASC ";

$stmt = $DB->prepare($sql);
$stmt->execute();
// all modules
$allModules = $stmt->fetchAll();

$sql = "SELECT rr_modulecode, rr_create, rr_edit, rr_delete, rr_view FROM role_rights "
. " WHERE rr_rolecode = :rc "
. " ORDER BY `rr_modulecode` ASC ";

$stmt = $DB->prepare($sql);
$stmt->bindValue(":rc", $_SESSION["rolecode"]);

$stmt->execute();
// modules based on user role
$userRights = $stmt->fetchAll();

$_SESSION["access"] = set_rights($allModules, $userRights, $commonModules);

} catch (Exception $ex) {

echo $ex->getMessage();
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

// if the rights are not set then add them in the current session
if (!isset($_SESSION["access"])) {

try {

$sql = "SELECT mod_modulegroupcode, mod_modulegroupname FROM module "


. " WHERE 1 GROUP BY `mod_modulegroupcode` "
. " ORDER BY `mod_modulegrouporder` ASC, `mod_moduleorder` ASC ";

$stmt = $DB->prepare($sql);
$stmt->execute();
// modules group
$commonModules = $stmt->fetchAll();

$sql = "SELECT mod_modulegroupcode, mod_modulegroupname, mod_modulepagename,


mod_modulecode, mod_modulename FROM module "
. " WHERE 1 "
. " ORDER BY `mod_modulegrouporder` ASC, `mod_moduleorder` ASC ";

$stmt = $DB->prepare($sql);
$stmt->execute();
// all modules
$allModules = $stmt->fetchAll();
$sql = "SELECT rr_modulecode, rr_create, rr_edit, rr_delete, rr_view FROM role_rights "
. " WHERE rr_rolecode = :rc "
. " ORDER BY `rr_modulecode` ASC ";

$stmt = $DB->prepare($sql);
$stmt->bindValue(":rc", $_SESSION["rolecode"]);

$stmt->execute();
// modules based on user role
$userRights = $stmt->fetchAll();

$_SESSION["access"] = set_rights($allModules, $userRights, $commonModules);

} catch (Exception $ex) {

echo $ex->getMessage();
}
}
In the above script all the data are passed into a function named set_rights() which return an array
based on user roles.

function set_rights($menus, $menuRights, $topmenu) {


$data = array();

for ($i = 0, $c = count($menus); $i < $c; $i++) {

$row = array();
for ($j = 0, $c2 = count($menuRights); $j < $c2; $j++) {
if ($menuRights[$j]["rr_modulecode"] == $menus[$i]["mod_modulecode"]) {
if (authorize($menuRights[$j]["rr_create"]) || authorize($menuRights[$j]["rr_edit"]) ||
authorize($menuRights[$j]["rr_delete"]) || authorize($menuRights[$j]["rr_view"])
){

$row["menu"] = $menus[$i]["mod_modulegroupcode"];
$row["menu_name"] = $menus[$i]["mod_modulename"];
$row["page_name"] = $menus[$i]["mod_modulepagename"];
$row["create"] = $menuRights[$j]["rr_create"];
$row["edit"] = $menuRights[$j]["rr_edit"];
$row["delete"] = $menuRights[$j]["rr_delete"];
$row["view"] = $menuRights[$j]["rr_view"];

$data[$menus[$i]["mod_modulegroupcode"]][$menuRights[$j]["rr_modulecode"]] = $row;
$data[$menus[$i]["mod_modulegroupcode"]]["top_menu_name"] =
$menus[$i]["mod_modulegroupname"];
}
}
}
}

return $data;
}

// this function is used by set_rights() function


function authorize($module) {
return $module == "yes" ? TRUE : FALSE;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

function set_rights($menus, $menuRights, $topmenu) {


$data = array();
for ($i = 0, $c = count($menus); $i < $c; $i++) {

$row = array();
for ($j = 0, $c2 = count($menuRights); $j < $c2; $j++) {
if ($menuRights[$j]["rr_modulecode"] == $menus[$i]["mod_modulecode"]) {
if (authorize($menuRights[$j]["rr_create"]) || authorize($menuRights[$j]["rr_edit"]) ||
authorize($menuRights[$j]["rr_delete"]) || authorize($menuRights[$j]["rr_view"])
){

$row["menu"] = $menus[$i]["mod_modulegroupcode"];
$row["menu_name"] = $menus[$i]["mod_modulename"];
$row["page_name"] = $menus[$i]["mod_modulepagename"];
$row["create"] = $menuRights[$j]["rr_create"];
$row["edit"] = $menuRights[$j]["rr_edit"];
$row["delete"] = $menuRights[$j]["rr_delete"];
$row["view"] = $menuRights[$j]["rr_view"];

$data[$menus[$i]["mod_modulegroupcode"]][$menuRights[$j]["rr_modulecode"]] = $row;
$data[$menus[$i]["mod_modulegroupcode"]]["top_menu_name"] =
$menus[$i]["mod_modulegroupname"];
}
}
}
}

return $data;
}

// this function is used by set_rights() function


function authorize($module) {
return $module == "yes" ? TRUE : FALSE;
}
Once you have all the modules based on your role in a session variable. Display it as list menu.

<ul>
<?php foreach ($_SESSION["access"] as $key => $access) { ?>
<li>
<?php echo $access["top_menu_name"]; ?>
<?php
echo '<ul>';
foreach ($access as $k => $val) {
if ($k != "top_menu_name") {
echo '<li><a href="' . ($val["page_name"]) . '">' . $val["menu_name"] . '</a></li>';
?>
<?php
}
}
echo '</ul>';
?>
</li>
<?php
}
?>
</ul>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

<ul>
<?php foreach ($_SESSION["access"] as $key => $access) { ?>
<li>
<?php echo $access["top_menu_name"]; ?>
<?php
echo '<ul>';
foreach ($access as $k => $val) {
if ($k != "top_menu_name") {
echo '<li><a href="' . ($val["page_name"]) . '">' . $val["menu_name"] . '</a></li>';
?>
<?php
}
}
echo '</ul>';
?>
</li>
<?php
}
?>
</ul>
Step 4. Conditional checking for each modules functionality.
In this step you have to manually check write a security check for a module functionaliy. Let say user has
the right to create, edit and view purchases but not delete it. In this case you have to add a conditional
checking before each buttons/links. See a sample below for purchases.php page module.

<!-- for creating purchase function -->


<?php if (authorize($_SESSION["access"]["INVT"]["PURCHASES"]["create"])) { ?>
<button class="btn btn-sm btn-primary" type="button"><i class="fa fa-plus"></i> ADD
PURCHASE</button>
<?php } ?>

<!-- for updating purchase function -->


<?php if (authorize($_SESSION["access"]["INVT"]["PURCHASES"]["edit"])) { ?>
<button class="btn btn-sm btn-info" type="button"><i class="fa fa-edit"></i> EDIT</button>
<?php } ?>

<!-- for view purchase function -->


<?php if (authorize($_SESSION["access"]["INVT"]["PURCHASES"]["view"])) { ?>
<button class="btn btn-sm btn-warning" type="button"><i class="fa fa-search-plus"></i>
VIEW</button>
<?php } ?>

<!-- for delete purchase function -->


<?php if (authorize($_SESSION["access"]["INVT"]["PURCHASES"]["delete"])) { ?>
<button class="btn btn-sm btn-danger" type="button"><i class="fa fa-trash-o"></i> DELETE</button>
<?php } ?>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

<!-- for creating purchase function -->


<?php if (authorize($_SESSION["access"]["INVT"]["PURCHASES"]["create"])) { ?>
<button class="btn btn-sm btn-primary" type="button"><i class="fa fa-plus"></i> ADD
PURCHASE</button>
<?php } ?>

<!-- for updating purchase function -->


<?php if (authorize($_SESSION["access"]["INVT"]["PURCHASES"]["edit"])) { ?>
<button class="btn btn-sm btn-info" type="button"><i class="fa fa-edit"></i> EDIT</button>
<?php } ?>

<!-- for view purchase function -->


<?php if (authorize($_SESSION["access"]["INVT"]["PURCHASES"]["view"])) { ?>
<button class="btn btn-sm btn-warning" type="button"><i class="fa fa-search-plus"></i>
VIEW</button>
<?php } ?>

<!-- for delete purchase function -->


<?php if (authorize($_SESSION["access"]["INVT"]["PURCHASES"]["delete"])) { ?>
<button class="btn btn-sm btn-danger" type="button"><i class="fa fa-trash-o"></i> DELETE</button>
<?php } ?>
Step 5. Validation for logged in and non-logged in user.
Another security checking, you can add this checking for individual page. check the two test cases
below.

If user is logged in and trying to access login page. User will be redirected to dashboard.
If user is not logged in and trying to access any page expect login page. User will be redirected to login
page.

// paste this in login page


if (isset($_SESSION["user_id"]) && $_SESSION["user_id"] != "") {
// if logged in send to dashboard page
redirect("dashboard.php");
}

// paste this in any page which require admin authorization


if (!isset($_SESSION["user_id"]) || $_SESSION["user_id"] == "") {
// not logged in send to login page
redirect("index.php");
}
2
3
4
5
6
7
8
9
10
11
12
13

// paste this in login page


if (isset($_SESSION["user_id"]) && $_SESSION["user_id"] != "") {
// if logged in send to dashboard page
redirect("dashboard.php");
}

// paste this in any page which require admin authorization


if (!isset($_SESSION["user_id"]) || $_SESSION["user_id"] == "") {
// not logged in send to login page
redirect("index.php");
}
You can also add another layer of security check for each modules pages if you want. In case if user is
trying to access a modules using direct page URL but is not assigned for, they must not passed this
security check.

$status = FALSE;
if ( authorize($_SESSION["access"]["INVT"]["PURCHASES"]["create"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["edit"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["view"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["delete"]) ) {
$status = TRUE;
}

if ($status === FALSE) {


die("You dont have the permission to access this page");
}
2
3
4
5
6
7
8
9
10
11
12
13

$status = FALSE;
if ( authorize($_SESSION["access"]["INVT"]["PURCHASES"]["create"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["edit"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["view"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["delete"]) ) {
$status = TRUE;
}

if ($status === FALSE) {


die("You dont have the permission to access this page");
}
Step 6. Logout Page.
The step is just for clearing the session and redirecting user back to login page.

session_start();
$_SESSION = array();
unset($_SESSION);
session_destroy();
header("location:index.php");
exit;
2
3
4
5
6
7
8

session_start();
$_SESSION = array();
unset($_SESSION);
session_destroy();
header("location:index.php");
exit;
View Demo
Download

SHARE. Twitter Facebook Google+ Pinterest LinkedIn Tumblr Email

TAGGED IN
Bootstrap mysql PHP
ABOUT AUTHOR

Shahrukh Khan Website Facebook Twitter Google+ LinkedIn


Entrepreneur & Dreamer

I am a passionate Software Professional, love to learn and share my knowledge with others.

Software is the hardware of my life.

RELATED POSTS
Change country flags and ISD code using PHP MySQL Ajax and jQuery
APRIL 5, 2016 7
Change country flags and ISD code using PHP MySQL Ajax and jQuery
Encode and Decode query string value in php
MARCH 25, 2015 13
Encode and Decode query string value in php
Calculating difference between two dates in php
FEBRUARY 15, 2015 22
Calculating difference between two dates in php
189 COMMENTS

Kapil Verma on November 21, 2014 6:58 Am


Download link going to localhost. Please update it.

REPLY

Shahrukh Khan on November 21, 2014 2:36 Pm


Thanks. I have updated it.

REPLY

Johny Carter on April 24, 2018 12:29 Pm


Cannot insert role right table does not exist

REPLY

Goran on May 29, 2018 1:02 Pm


Good tutorial, thank you…

REPLY

Shahrukh Khan on July 29, 2018 8:38 Am


you are welcome.

REPLY

Salman Khan on November 1, 2018 11:25 Pm


can you provide the download link or mail the code to me.
allah will bless you

REPLY

Shahrukh Khan on December 14, 2018 9:48 Am


the download link is at the end of the article, click on the download button

Nikita Shrivastava on November 23, 2014 6:29 Pm


Thank you so much..!! I actually needed some help to overcome this problem. Thanks again.

REPLY

Shahrukh Khan on November 26, 2014 3:45 Pm


Yes what help you need?

REPLY

Tanjina on November 25, 2014 4:39 Am


good job bro.

REPLY

Shahrukh Khan on November 26, 2014 3:45 Pm


Thank You Tanjina.

REPLY

Prabakarab on January 16, 2015 8:06 Am


this is what i am looking for.
thank you so much for sharing

REPLY

Shahrukh Khan on January 16, 2015 2:58 Pm


Thanks a lot

REPLY

Prabakar on February 20, 2015 9:22 Am


hi sharuk,

can u please tell me how to build this application in codeigniter.?

thanks

REPLY
Shahrukh Khan on February 24, 2015 8:03 Am
All the concept is same, for the database part make a model, use the application logic in the controller
and for output the rights/menu in the view file.

REPLY

Ashok on March 12, 2015 6:23 Am


hi sharuk,

good job man….

REPLY

Shahrukh Khan on March 13, 2015 4:31 Pm


Thanks a lot.

REPLY

Prabakar on March 20, 2015 1:28 Pm


Hi sharuk

if we use “OR” opertor in In Page level security check , will it retrieve all data?
so we can access below operations right?
create, edit, delete, view.
Please explain

REPLY

Shahrukh Khan on March 25, 2015 10:15 Am


yes it will

REPLY

Arsalan on March 26, 2015 1:31 Pm


Dear what is the structure of last table/???

REPLY

Suman Chhetri on April 11, 2015 3:11 Pm


I downloaded the contents and configured database as instructed but when I’m logging in as ‘Ronald’ ,
no option is available. When I login through ‘Shahrukh’, only then menu options are visible. Need your
assistance.

REPLY

Shahrukh Khan on April 12, 2015 10:51 Am


you have to give rights for ronald.
REPLY

Henry on April 29, 2015 8:22 Am


Thank you for the tutorial, i have followed every step but i am not able to login, also does ” alidating
user login using PHP” code go into the config file..

I am just a step away to getting this Kindly help

REPLY

Shahrukh Khan on April 30, 2015 10:33 Am


make sure you have given the access right for the user.

REPLY

Ask on May 14, 2015 10:54 Pm


Hi there, always i used to check weblog posts here in the early hours in the morning, for the reason that
i enjoy to learn more and more.

REPLY

Umer on May 16, 2015 6:09 Pm


Not able to download any code 🙁

REPLY

Shahrukh Khan on May 17, 2015 7:04 Am


Please click in the social link to unlock the download link

REPLY

Harinath on May 18, 2015 7:33 Am


HI Shahrukh,
i am developing a wordpress website with huge data with lots of images ..
if i want to change the website look ..i will upload that whole data again one by one which takes lots of
time.
is there any way to insert bulk data at a time??
please help me
Thanks in advance.

REPLY

Newbee on June 22, 2015 5:07 Am


sir, can u make 1 register form for this login scripts,
thx before for this great scripts

REPLY
Shahrukh Khan on June 22, 2015 7:13 Am
check this tutorial. hope this will help you.
https://www.thesoftwareguy.in/creating-responsive-multi-step-form-bootstrap-jquery/

REPLY

Sanjay on July 5, 2015 8:28 Am


useful and very nice

REPLY

Jose Rivera on July 15, 2015 5:25 Pm


What happen if you want to create multilevel menu with modules, now you only allow one sub – level
It will be something like this : Banking -> Accounts -> Others…

REPLY

Shahrukh Khan on July 21, 2015 10:13 Am


In that case you can go for a parent-child relationship way using a column say parent that will hold the
ID of the parent menu.

REPLY

Tony on July 29, 2015 3:45 Pm


Hi
Trying to set this up but I am struggling.
Can you show the sql code to create the role_rights table.

I can’t see the function redirect that should be in the functions php

Could you assist

Thank you

REPLY

Shahrukh Khan on August 5, 2015 10:27 Am


check step 1 of the article.

REPLY

Michael on July 31, 2015 8:17 Pm


I can’t thank you enough! Great tutorial

REPLY

Pallab on August 30, 2015 5:35 Am


Very Nice would u plz explain module order section in database part
REPLY

Shahrukh Khan on September 9, 2015 5:28 Pm


everything is already explained, what part are you facing problem.

REPLY

Sonia on September 5, 2015 7:12 Am


hello…i am not able to get the moduleorder and modulegrouporder could you please explain how its
working?

REPLY

Jack on September 7, 2015 6:56 Am


The role_rights table is unavailable. Kindly share it with me

REPLY

Shahrukh Khan on September 9, 2015 5:27 Pm


it is there, please check.

REPLY

Alex Yeung on September 15, 2015 2:27 Pm


I can’t get the download link even I like it.

REPLY

Shahrukh Khan on September 28, 2015 4:43 Am


double click on that like button.

REPLY

Alvaro on November 18, 2015 9:46 Am


Thank you for this amazing tutorial!
I would like to ask if it’s possible to do the same but instead with a website, using android! So far I’ve
already created the database and I am capable to insert and modify values, but I’m not sure how I would
relate the roles depending of the user… thanks!

REPLY

Shahrukh Khan on November 20, 2015 5:59 Am


well I am not into Android. but I am sure you have to use the logic the same way given here.

REPLY

Balamurali on December 18, 2015 12:26 Am


mr khan i have share your website link to my facebook but the downloading option is not avaliabe so pls
help me.send the downlaoding link to my email id “3dbalamurali@gmail.com”

REPLY

Shahrukh Khan on December 18, 2015 11:52 Am


try double clicking on the social link. it will work

REPLY

Simhaa on December 18, 2015 11:34 Am


hi i am simhaa ,can u send me the code of this tutorial part

REPLY

Simhaa on December 18, 2015 11:37 Am


this is good exactlly fits my requirement and iam new to programing

REPLY

Shahrukh Khan on December 18, 2015 11:50 Am


hi. Kindly click on the social links again to unlock the download link.

REPLY

Sumit Nair on December 19, 2015 11:48 Am


Hi bro i am unable to convert your sql code to codeigniter like prepare which is in dashboard.php but i
loved your code please help me out buddy how should i write this code in codeigniter

REPLY

Shahrukh Khan on December 20, 2015 7:41 Pm


Hi bro . i am not that expert in codeignitor but all you have to do is create a model that will have query
part to fetch the permission from database. In the controller you can set the access right in the session
variable from models and in the views you can give condition based on that. just the theory on how
MVC works. hope this will provide you the guideline.

REPLY

Sumit Nair on December 23, 2015 8:20 Am


Thanks buddy with reference to your code i did it and yes this code helped me alot although it was really
tough to convert this code but still just because off your code i was able to complete it thanks alot
buddy keep on coding 🙁 🙁

REPLY

Shahrukh Khan on December 25, 2015 9:38 Am


Thanks I am glad it helped.
REPLY

Benayad on December 21, 2015 11:23 Pm


hello,
excuse my English is so bad
in your function you are
function set_rights($menus, $menuRights, $topmenu)
but $topmenu is not use anywhere,

Please can you reply

REPLY

Shahrukh Khan on December 25, 2015 9:42 Am


It is used for checking the access rights. If its not used for you can remove that parameter.

REPLY

Cahyan on February 9, 2016 2:17 Am


Sorry, my English is bad
Hello, to be used as mysqli, these functions should be modified as what?
Please reply

function set_rights($menus, $menuRights, $topmenu) {


$data = array();

for ($i = 0, $c = count($menus); $i < $c; $i++) {

$row = array();
for ($j = 0, $c2 = count($menuRights); $j < $c2; $j++) {
if ($menuRights[$j]["rr_modulecode"] == $menus[$i]["mod_modulecode"]) {
if (authorize($menuRights[$j]["rr_create"]) || authorize($menuRights[$j]["rr_edit"]) ||
authorize($menuRights[$j]["rr_delete"]) || authorize($menuRights[$j]["rr_view"])
){

$row["menu"] = $menus[$i]["mod_modulegroupcode"];
$row["menu_name"] = $menus[$i]["mod_modulename"];
$row["page_name"] = $menus[$i]["mod_modulepagename"];
$row["create"] = $menuRights[$j]["rr_create"];
$row["edit"] = $menuRights[$j]["rr_edit"];
$row["delete"] = $menuRights[$j]["rr_delete"];
$row["view"] = $menuRights[$j]["rr_view"];

$data[$menus[$i]["mod_modulegroupcode"]][$menuRights[$j]["rr_modulecode"]] = $row;
$data[$menus[$i]["mod_modulegroupcode"]]["top_menu_name"] =
$menus[$i]["mod_modulegroupname"];
}
}
}
}

return $data;
}

// this function is used by set_rights() function


function authorize($module) {
return $module == "yes" ? TRUE : FALSE;
}

Read more: https://www.thesoftwareguy.in/creating-multi-user-role-based-admin-using-php-mysql-


bootstrap/#ixzz3zdIF0RiJ

REPLY

RBN on February 9, 2016 2:02 Pm


I created role_rights table as:

CREATE TABLE IF NOT EXISTS role_rights (


rr_rolecode int(11) NOT NULL,
rr_modulecode varchar(100) NOT NULL,
rr_create varchar(25) NOT NULL,
rr_edit varchar(25) NOT NULL,
rr_delete varchar(25) NOT NULL,
rr_view varchar(25) NOT NULL,
FOREIGN KEY (rr_rolecode) REFERENCES role (role_rolecode) ON UPDATE CASCADE ON DELETE
RESTRICT,
FOREIGN KEY (rr_modulecode) REFERENCES module (mod_modulecode) ON UPDATE CASCADE ON
DELETE RESTRICT
) ENGINE=INNODB DEFAULT CHARSET=utf8;

BR,
Rbn

REPLY

Pampa Bakshi on February 15, 2016 9:26 Am


Thank you very much

REPLY

T. Khanna Vijay on March 11, 2016 6:48 Pm


hi ,

may i know how to retrieve three level menu


1>main
2>sub
3>template level
can u please suggest me

thanks & regards

REPLY

Tuhin on March 19, 2016 6:18 Am


How are you brother. I’m your source code will be given to me. It’s nice if you would benefit hayecheya.

REPLY

Shahrukh Khan on March 19, 2016 9:29 Am


I am good bro. please click on the social link at the end of the article you will get the download link of
the source code.

REPLY

Ola on March 22, 2016 12:58 Pm


Hello my friend, good resource there… i want to ask as a super admin, can i add more field to the
database.

REPLY

Shahrukh Khan on March 24, 2016 7:50 Am


Hello. Of course you can do that directly to the database or you can code a page where you can add this
feature. Best of luck

REPLY

Tuhin on March 19, 2016 1:18 Pm


Thank u Brother

REPLY

Tuhin on March 26, 2016 6:10 Am


Bro. ami ki kora database a new data post korta pari ektu bolben plz……

REPLY

Shahrukh Khan on March 27, 2016 8:26 Am


bro. do you know the basic of php.. maybe be you should read this tutorial.
https://www.thesoftwareguy.in/php-for-beginners-part-5/

REPLY

Shilpitha on March 29, 2016 11:09 Am


Hi Shahrukh,

I’m unable to view this application as in demo.


I’m getting this SQLSTATE[HY000] [1049] Unknown database ‘multi-admin’ when i run, can you please
guide me on this. I’m new for PHP

REPLY

Shahrukh Khan on March 29, 2016 11:13 Am


Hello Shilpitha.
Make sure you have already created a database ‘multi-admin’ in your mysql database. If already created
make sure you spelt it correctly. Best of luck.

REPLY

Michael on March 30, 2016 3:46 Am


Would be great if this was done with mysqli. Great Tutorial anyway

REPLY

Shahrukh Khan on April 3, 2016 11:42 Am


mysqli or PDO is just a personal preference 🙁

REPLY

Sudeep on April 13, 2016 8:52 Am


Good work Bro, Keep it up!

REPLY

Akin on April 24, 2016 6:56 Am


Sorry. What is the download link. What social link do I click on? Please point it out. Thanks

REPLY

Shahrukh Khan on April 24, 2016 6:08 Pm


click on the any social button below the article to download.

REPLY

Bougdim on April 24, 2016 12:35 Pm


thanks

REPLY

Queen on May 11, 2016 2:14 Pm


Hi. Thanks very much for this wonderful input. Kindly help me understand how to create the table for
the role_rights. Thanks
REPLY

Pradeepsingh on May 10, 2016 11:13 Am


Nice Project Shahrukh..!
it willl help me lot to understand & design a similar system.

REPLY

Raj on May 16, 2016 10:44 Am


how to make it responsive?

REPLY

Shahrukh Khan on May 27, 2016 10:10 Am


Its already responsive, made with bootstrap library.

REPLY

Nakul Gupta on May 21, 2016 5:33 Am


Sir yesterday I request tutorial so sir in how many days you give tutorial and publish it in website .
Because I need it urgently so please make fast. I sent request tutorial with my I’d fcnakul@gmail.com

REPLY

Shahrukh Khan on May 27, 2016 10:07 Am


Tutorial is posted as per my work schedule and does not guarantee any time span. Hope you
understand.

REPLY

Mac on May 25, 2016 3:46 Pm


Hallow Shahrukh,

I have understood reason for these fields mod_modulegrouporder and mod_moduleorder in module
table

REPLY

Shahrukh Khan on May 27, 2016 10:06 Am


Great.

REPLY

Upasana on June 11, 2016 8:43 Am


I am trying to do this website I have not uploaded it yet. I might do on the intranet then the internet. I
have a problem. Which page does the code between step 3 and 4 go. I am confused about that.
REPLY

Shahrukh Khan on June 11, 2016 9:28 Am


Just create a form in your login.php (or whatever page you want) and when you give the action of the
page where the code to validate the user is given after that. Just use the code in whatever file you have
named.

REPLY

Upasana on June 12, 2016 7:14 Am


Thanks a lot. I will try to do actually I m new to PHP and am trying to learn. Single user I have been doing
in general but this is new.

REPLY

RAJESH SAHOO on June 14, 2016 11:49 Am


Hi dude ,i just view your blog that’s awesome. I have problem please help me ,i download your source
code and use it as demos whenever i’m click on Add button for add new item it’s not show the insert
form please help me for this.

REPLY

Shahrukh Khan on June 14, 2016 12:01 Pm


thanks..the download file has the exact clone of the demo.. maybe you are missing something.. what is
the error.

REPLY

Ajay Tiwari on June 22, 2016 5:59 Am


Hey Good Job bro,
But in admin lte panel there is a big issue of session, Session automatically expired still i have set it for 8
hour and after session expire login again and its not loading all menu,

Please help

REPLY

Shahrukh Khan on June 23, 2016 11:20 Am


Hi.
Please contact admnlte template owner/staff for best solutions as they have made the template.

REPLY

Ajay Tiwari on August 30, 2016 12:58 Pm


Yes i can understand but this is not the issue of bootstrap this is issue your php code.
Cam you plz help .
You can laso check it in demo plz login once and clear the cookie it will logout automatically and login
again you are not able to see menu thas the problem
REPLY

Surendra on June 28, 2016 7:09 Am


I need 5 admins, How can i create them?
As There are only two users(Super admin and Admin) in your code.

REPLY

Shahrukh Khan on June 30, 2016 12:33 Pm


create from database directly, using phpmyadmin

REPLY

Albab on July 7, 2016 9:16 Am


Thanks for this great tutorial

In your tutorial, the accessed page is only one per module (lets say in “module code of Payment” there is
a page of “payment.php” (only one page) – in the “module code of Shipping” there is a page of
“shipping.php”).

My question is, How if we want to make the user can access to several pages instead of one (example, in
the “module code Payment” there will be “payment.php” and “payment1.php” and “payment2.php”)

Thank You.

REPLY

Shahrukh Khan on July 13, 2016 11:27 Am


you need to use module name and put a condition check on each pages.

REPLY

Seetha on July 7, 2016 3:56 Pm


user name and password is not working to view demo

REPLY

Shahrukh Khan on July 13, 2016 11:26 Am


it will work

REPLY

Sumit on July 31, 2016 3:18 Am


cant download the files even though i have liked it Facebook

REPLY
Shahrukh Khan on August 2, 2016 4:38 Am
try unlike and like again.

REPLY

AD on August 3, 2016 6:44 Am


hey bro when i try to create table like:

CREATE TABLE IF NOT EXISTS role_rights (


rr_rolecode int(11) NOT NULL,
rr_modulecode varchar(100) NOT NULL,
rr_create varchar(25) NOT NULL,
rr_edit varchar(25) NOT NULL,
rr_delete varchar(25) NOT NULL,
rr_view varchar(25) NOT NULL,
FOREIGN KEY (rr_rolecode) REFERENCES role (role_rolecode) ON UPDATE CASCADE ON DELETE
RESTRICT,
FOREIGN KEY (rr_modulecode) REFERENCES module (mod_modulecode) ON UPDATE CASCADE ON
DELETE RESTRICT
) ENGINE=INNODB DEFAULT CHARSET=utf8;

it is showing: MySQL said: Documentation

#1005 – Can’t create table ‘multi-admin.role_rights’ (errno: 150) (Details…)

what is the reason plzz give me working code of creating table named: role_rights

REPLY

Shahrukh Khan on August 3, 2016 11:32 Am


Have you created the table role and module.

REPLY

AD on August 4, 2016 7:16 Am


yes now its done…

REPLY

Budi on August 5, 2016 12:25 Pm


String must be same !!! you can see in role and module database

REPLY

Lacroix on September 2, 2016 3:04 Am


//
CREATE TABLE IF NOT EXISTS role_rights (
rr_rolecode int(11) NOT NULL,
rr_modulecode varchar(100) NOT NULL,
rr_create varchar(25) NOT NULL,
rr_edit varchar(25) NOT NULL,
rr_delete varchar(25) NOT NULL,
rr_view varchar(25) NOT NULL,
FOREIGN KEY (rr_rolecode) REFERENCES role (role_rolecode) ON UPDATE CASCADE ON DELETE
RESTRICT,
FOREIGN KEY (rr_modulecode) REFERENCES module (mod_modulecode) ON UPDATE CASCADE ON
DELETE RESTRICT
) ENGINE=INNODB DEFAULT CHARSET=utf8;
//
When I’ve adding this thru phpmyadmin I get this:
MySQL said: Documentation

#1215 – Cannot add foreign key constraint

REPLY

Shahrukh Khan on September 2, 2016 5:05 Pm


have you create module and role table

REPLY

Arslanali on September 19, 2016 12:53 Pm


Hi. Thank you for tutorial.
I would like to see the implementation of editing, adding, deleting, viewing in bootstrap 🙁

REPLY

Arslanali on September 19, 2016 12:55 Pm


It will be a good addition to your lesson

REPLY

Hungtrada on September 27, 2016 1:46 Am


hi, tks for your shared
but I got an mistake, When I click in /purchases.php : back to Dashboard .. the page only show Inventory
when I click /purchases.php and click back to Dashboard ..the page no show any page… Pls help
tks

REPLY

Martins on October 4, 2016 9:19 Am


Great work sir. but theptoblem I have is that the add, edit and delete functions does not work. when I
click, it doesnt respond. Please help me

REPLY
Shahrukh Khan on October 19, 2016 11:43 Am
you need to add the logic yourself. This is just a sample

REPLY

Bonny on December 7, 2016 6:31 Am


“you need to add the logic yourself. This is just a sample”
please can you assist to show us how to add?

REPLY

Shahrukh Khan on February 6, 2017 8:11 Pm


Regarding which part

REPLY

Developer on January 6, 2017 1:12 Am


SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #2 of SELECT list is not in GROUP BY
clause and contains nonaggregated column ‘multi-admin.module.mod_modulegroupname’ which is not
functionally dependent on columns in GROUP BY clause; this is incompatible with
sql_mode=only_full_group_by

REPLY

Tuhin on January 12, 2017 7:10 Am


Hi, Bro…Ami Role Table A Data insert Error Problem……Plz Solve Me Brother

require(“config.php”);
if (isset($_REQUEST[“sub”])) {

$role_rolecode = trim(($_REQUEST[“p_name”]));
$role_rolename = trim(($_REQUEST[“p_age”]));
if ($p_name “” && $p_age “”) {
$sql = “INSERT INTO role (role_rolecode, role_rolename) VALUES (:n, :a);”;
$success_message = ‘Data has been inserted successfully.’;
try {
$stmt = $DB->prepare($sql);
$stmt->bindValue(“:n”, $p_name);
$stmt->bindValue(“:a”, $p_age);

$stmt->execute();

if ($stmt->rowCount()) {

} else {
printErrorMessage(“could not insert into database. Please try again”);
}
} catch (Exception $ex) {
printErrorMessage($ex->getMessage());
}

} else {

}
}
?>

Database Sample Script – http://www.thesoftwareguy.in

Sample Database Script :: Add Record

Back to Homepage

Role:

Role Name:

REPLY

Tuhin on January 22, 2017 9:58 Am


solve the problem_Thanks Shahrukh Bhai

REPLY

Pravin on March 6, 2017 10:41 Am


Hi Shahrukh,

NEED HELP !!!

I have a problem while logging in.


It accepts the Username and Password correctly through Database table system_users, but doesn’t logs
into the website to dashboard. Instead, it again redirects me to Index page.

Would you help me with this issue ?

REPLY

Pravin on March 16, 2017 5:32 Am


Resolved the problem!

REPLY

Shahrukh Khan on May 7, 2017 11:56 Am


maybe your session is not correct or redirection issue.

REPLY
Edmond on March 17, 2017 10:29 Am
how to convert this in to mvc

REPLY

Shahrukh Khan on May 7, 2017 11:50 Am


which mvc framework

REPLY

Javi Cases on March 21, 2017 5:04 Pm


correct table definition:

CREATE TABLE IF NOT EXISTS role_rights (


rr_rolecode varchar(50) NOT NULL,
rr_modulecode varchar(25) NOT NULL,
rr_create varchar(25) NOT NULL,
rr_edit varchar(25) NOT NULL,
rr_delete varchar(25) NOT NULL,
rr_view varchar(25) NOT NULL,
FOREIGN KEY (rr_rolecode) REFERENCES role (role_rolecode) ON UPDATE CASCADE ON DELETE
RESTRICT,
FOREIGN KEY (rr_modulecode) REFERENCES module (mod_modulecode) ON UPDATE CASCADE ON
DELETE RESTRICT
) ENGINE=INNODB DEFAULT CHARSET=utf8;

REPLY

Aditya on May 15, 2017 10:32 Pm


I am trying to login from firefox by your demo as well http://demos.thesoftwareguy.in/multi-user-
admin/

but still the page is redirecting me back to index page after login … there is some problem with the code
i guess could you please check

Thanks

REPLY

Shahrukh Khan on May 16, 2017 8:32 Am


working fine here, maybe you can clear your cache and check.

REPLY

Pagande on May 26, 2017 7:32 Pm


assalaamu alaikum,
Sorry, if my english is not good.
thank you for your shared.
Can i add any module other than create, edit, view and delete?

REPLY

Shahrukh Khan on June 9, 2017 7:29 Pm


Walikum assalam. Yes you can add any modules you want. just add extra columns in role_rights table
and also in the code as well.

REPLY

Pagande on July 30, 2017 3:41 Am


I’ve tried, but not yet.
In addition to the Create, Edit, View, and delete module, I want to add the module Balas and Terima.

This database role_rights:

CREATE TABLE IF NOT EXISTS role_rights (


rr_rolecode varchar(50) NOT NULL,
rr_modulecode varchar(25) NOT NULL,
rr_create enum(‘yes’,’no’) NOT NULL DEFAULT ‘no’,
rr_edit enum(‘yes’,’no’) NOT NULL DEFAULT ‘no’,
rr_delete enum(‘yes’,’no’) NOT NULL DEFAULT ‘no’,
rr_view enum(‘yes’,’no’) NOT NULL DEFAULT ‘no’,
rr_balas enum(‘yes’,’no’) NOT NULL DEFAULT ‘no’,
rr_terima enum(‘yes’,’no’) NOT NULL DEFAULT ‘no’,
PRIMARY KEY (rr_rolecode, rr_modulecode),
FOREIGN KEY (rr_rolecode) REFERENCES role (role_rolecode) ON UPDATE CASCADE ON DELETE
RESTRICT,
FOREIGN KEY (rr_modulecode) REFERENCES module (mod_modulecode) ON UPDATE CASCADE ON
DELETE RESTRICT
) ENGINE=INNODB DEFAULT CHARSET=utf8;

INSERT INTO role_rights (rr_rolecode, rr_modulecode, rr_create, rr_edit, rr_delete, rr_view, rr_balas,
rr_terima) VALUES
(‘SUPERADMIN’, ‘PURCHASES’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘STOCKS’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘SALES’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘SHIPPING’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘PAYMENT’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘TAX’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘ADMIN’, ‘PURCHASES’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘no’, ‘no’),
(‘ADMIN’, ‘STOCKS’, ‘no’, ‘no’, ‘no’, ‘yes’, ‘no’, ‘no’),
(‘ADMIN’, ‘SALES’, ‘no’, ‘no’, ‘no’, ‘no’, ‘no’, ‘no’),
(‘ADMIN’, ‘SHIPPING’, ‘yes’, ‘yes’, ‘yes’, ‘yes’, ‘no’, ‘no’),
(‘ADMIN’, ‘PAYMENT’, ‘no’, ‘no’, ‘no’, ‘yes’, ‘no’, ‘no’),
(‘ADMIN’, ‘TAX’, ‘no’, ‘no’, ‘no’, ‘no’, ‘no’, ‘no’);
Script on file functions.php :

function set_rights($menus, $menuRights, $topmenu) {


$data = array();

for ($i = 0, $c = count($menus); $i < $c; $i++) {

$row = array();
for ($j = 0, $c2 = count($menuRights); $j < $c2; $j++) {
if ($menuRights[$j]["rr_modulecode"] == $menus[$i]["mod_modulecode"]) {
if (authorize($menuRights[$j]["rr_create"]) || authorize($menuRights[$j]["rr_edit"]) ||
authorize($menuRights[$j]["rr_delete"]) || authorize($menuRights[$j]["rr_view"]) ||
authorize($menuRights[$j]["rr_balas"]) || authorize($menuRights[$j]["rr_terima"])
){

$row["menu"] = $menus[$i]["mod_modulegroupcode"];
$row["menu_name"] = $menus[$i]["mod_modulename"];
$row["page_name"] = $menus[$i]["mod_modulepagename"];
$row["create"] = $menuRights[$j]["rr_create"];
$row["edit"] = $menuRights[$j]["rr_edit"];
$row["delete"] = $menuRights[$j]["rr_delete"];
$row["view"] = $menuRights[$j]["rr_view"];
$row["balas"] = $menuRights[$j]["rr_balas"];
$row["terima"] = $menuRights[$j]["rr_terima"];

$data[$menus[$i]["mod_modulegroupcode"]][$menuRights[$j]["rr_modulecode"]] = $row;
$data[$menus[$i]["mod_modulegroupcode"]]["top_menu_name"] =
$menus[$i]["mod_modulegroupname"];
}
}
}
}

return $data;
}

Script on file purchases.php :

if ( authorize($_SESSION["access"]["INVT"]["PURCHASES"]["create"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["edit"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["view"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["delete"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["balas"]) ||
authorize($_SESSION["access"]["INVT"]["PURCHASES"]["terima"]) ) {
$status = TRUE;
}

EDIT
VIEW

DELETE

BALAS

TERIMA

If logged in as superadmin level,


Which appears only edit, view, delete.
Being BALAS and TERIMA not showing.

What’s wrong with where?


Thank you very much

REPLY

Pagande on July 30, 2017 3:50 Am


Sorry, its code is not showing .

purchases.php
————-

if ( authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“create”]) ||
authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“edit”]) ||
authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“view”]) ||
authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“delete”]) ||
authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“balas”]) ||
authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“terima”]) ) {
$status = TRUE;
}

if (authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“edit”])) {
EDIT
}
if (authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“view”])) {
VIEW
}
if (authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“delete”])) {
DELETE
}
if (authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“balas”])) {
BALAS
}
if (authorize($_SESSION[“access”][“INVT”][“PURCHASES”][“terima”])) {
TERIMA
}
REPLY

Shahrukh Khan on August 21, 2017 7:14 Pm


becuase your session is empty

REPLY

Pagande on August 26, 2017 8:42 Am


thank you for your answer.
On which part of the session is defined?
🙁

Shahrukh Khan on September 11, 2017 7:22 Pm


in the config file

Harshit on June 3, 2017 2:24 Pm


Hi Shahrukh,
I am basically a kid and i have my project in which i need to have a login page and i dont even know php
so could u please tell me how to open this file.

REPLY

Shahrukh Khan on June 9, 2017 7:25 Pm


Hi. I think you need to get started with php.
Maybe you get started with this tutorial it will help you.
https://www.thesoftwareguy.in/php-tutorial/

REPLY

Arshad on June 17, 2017 12:23 Am


i’m getting invalid argument on this line: foreach ($_SESSION[“access”] as $key => $access)

REPLY

Shahrukh Khan on July 7, 2017 10:33 Am


maybe your session has expired or session variable is not set properly.

REPLY

Arshad on June 17, 2017 12:34 Am


What is the use of moduleorder here?

REPLY

Shahrukh Khan on July 7, 2017 10:32 Am


just to display in order of menus

REPLY

Akshay on June 27, 2017 1:17 Pm


Thank You Mr. Shahrukh for sharing a good work. I also need this and I will try with your work. If I face
any problems I will contact you.

REPLY

Shahrukh Khan on July 7, 2017 10:15 Am


You are welcome.

REPLY

Ade on September 11, 2017 12:35 Pm


You have done a very good job..

REPLY

Pavan on July 16, 2017 5:15 Pm


HI shahrukh,

i am getting error while i trying to module name.can you please help us.

Error Code: 1452


Cannot add or update a child row: a foreign key constraint fails (multi-admin.role_rights, CONSTRAINT
role_rights_ibfk_2 FOREIGN KEY (rr_modulecode) REFERENCES module (mod_modulecode) ON UPDATE
CASCADE)

INSERT INTO module (mod_modulegroupcode, mod_modulegroupname, mod_modulecode,


mod_modulename, mod_modulegrouporder, mod_moduleorder, mod_modulepagename) VALUES
(“INVT”,”reports”, “reports1″,”Purchases”, 2, 1,’import.php’),
(“INVT”,”reports”, “reports2″,”Stocks”, 2, 2,’stocks.php’),
(“INVT”,”reports”, “reports3″,”Sales”, 2, 3,’sales.php’),
(“CHECKOUT”,”Checkout”,”SHIPPING”,”Shipping”, 3, 1,’shipping.php’),
(“CHECKOUT”,”Checkout”,”PAYMENT”,”Payment”, 3, 2,’payment.php’),
(“CHECKOUT”,”Checkout”,”TAX”,”Tax”, 3, 3,’tax.php’);

INSERT INTO role_rights (rr_rolecode, rr_modulecode, rr_create, rr_edit, rr_delete, rr_view) VALUES
(‘SUPERADMIN’, ‘reports1’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘reports2’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘reports1’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘SHIPPING’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘PAYMENT’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘TAX’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
(‘SUPERADMIN’, ‘REPORT’, ‘yes’, ‘yes’, ‘yes’, ‘yes’),
REPLY

Shahrukh Khan on July 21, 2017 2:13 Pm


maybe there is a spelling mistake with your code for module name. thats the reason its not able to
insert

REPLY

Pavan on July 21, 2017 2:53 Pm


Thanks shahrukh.
i got it .

Can your please provide php script to check the duplicate mail id from csc

REPLY

Shahrukh Khan on July 23, 2017 6:48 Pm


Great. Either set the column name to unique in the database (recommend). Or when you update a new
record check if you have any record that exist with that email address.

REPLY

Neeraj on August 12, 2017 6:52 Am


Sir,
I am new in php. I downloaded your code. While running, a message shows that ‘Warning: Invalid
argument supplied for foreach() in C:\wamp\www\shahrukh\dashboard.php on line 69 and ‘Warning:
Invalid argument supplied for foreach() in C:\wamp\www\shahrukh\dashboard.php on line 95’. What is
the solution?
Thank you.

REPLY

Shahrukh Khan on August 21, 2017 7:00 Pm


I think you dont have data in the result set that why.

REPLY

Neeraj Kumar on August 13, 2017 3:15 Am


Sir,
I am new in programming. I downloaded your code and tried to run. A message shows that
1. SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #2 of SELECT list is not in GROUP
BY clause and contains nonaggregated column ‘multi-admin.module.mod_modulegroupname’ which is
not functionally dependent on columns in GROUP BY clause; this is incompatible with
sql_mode=only_full_group_by
2. Warning: Invalid argument supplied for foreach() in C:\wamp\www\shahrukh\dashboard.php on line
69
3. Warning: Invalid argument supplied for foreach() in C:\wamp\www\shahrukh\dashboard.php on line
95.
4. I have seen above the same query made by someone on January 6, 2017 1:12 AM but no answer was
given.
5. As I am new in programming, it is requested to explain why ‘wherre 1 order by —-‘ is used in the
query:-
$sql = “SELECT mod_modulegroupcode, mod_modulegroupname, mod_modulepagename,
mod_modulecode, mod_modulename FROM module ”
. ” WHERE 1 ”
. ” ORDER BY mod_modulegrouporder ASC, mod_moduleorder ASC “;used at lines 23-25 in
dashboard.php.
Thanking you.

REPLY

Shahrukh Khan on August 21, 2017 6:57 Pm


i think its your database issue. make sure the schema is built properly.

REPLY

Neeraj Kumar on August 27, 2017 1:56 Pm


Dear sir,
Reference: In continuation of the query made by me on 13/08/2017 that is showing just above, it is to
state that
first of all, I have not changed your database as well as your programme
and secondly, my php is 5.7 wherein this type of issue continuously are shown. Please rectify your
programme as per php 5.7 and latest versions.
Thanking you.

REPLY

Shahrukh Khan on September 11, 2017 7:21 Pm


i will try to write a new more smart tutorial in coming week which will be compatible with php7 as well.
Although it works fine with php5 as well.

REPLY

Mahesh on September 12, 2017 4:13 Pm


when i logout it does not redirect to index.php but still showing dashhboard.php does not clear or reset
session ,demo on your site is working fine is there is any setting i have to create in php.ini file please
help me

REPLY

Shahrukh Khan on December 5, 2017 6:23 Pm


see your session data.

REPLY

Jonathan Ornstein on September 20, 2017 9:26 Pm


THANK YOU FOR THIS!!!!!!

REPLY

Carlo on October 15, 2017 12:33 Pm


can i have your help sir for my project?

REPLY

Shahrukh Khan on December 5, 2017 6:11 Pm


Yes regarding

REPLY

Lily on October 16, 2017 8:26 Am


hi .. nice content … i still couldnt find anyboby else posting role based login…but i need some help… can
the admin create username and password for the users to login… like admin has password and after he
logs in he has to create username and passwords for users and give it to them and then the user can
login .. can you help me in this..

REPLY

Lily on October 17, 2017 5:30 Am


k main question can superadmin assign role rights for the admins on the frontend.. not on database..??
if so can u helpme?

REPLY

Shahrukh Khan on December 5, 2017 6:09 Pm


Dont get your question

REPLY

Shahrukh Khan on December 5, 2017 6:10 Pm


yes it is surely possible, you need to code it.

REPLY

Lily on December 6, 2017 6:42 Am


yes i did it with the help of your codes thank you so much

REPLY

Shahrukh Khan on December 24, 2017 12:47 Pm


you are welcome.

REPLY
Taha Ahmad on October 20, 2017 7:58 Am
Hello Dear ,
your database design is awesome can you send me the picture of database design with relationships .

regards
Taha Ahmad

REPLY

Shahrukh Khan on December 5, 2017 6:08 Pm


you get the total code why you need picture.

REPLY

Soumya on October 23, 2017 9:01 Am


hi ,
i need php code for posting new events from admin dashboard to the user page.
and adding revies and ratings

REPLY

Naman on November 15, 2017 8:08 Am


Can we get the same in script converted in mysqli

REPLY

Shahrukh Khan on December 5, 2017 5:56 Pm


pdo and mysqli is almost same, check the manual for more references.

REPLY

Sanjay Kumar on December 23, 2017 10:20 Am


i want to registration.php page of this demo for learning because i am a beginner….

REPLY

Sanjay Kumar on December 23, 2017 10:21 Am


You send it by gmail

REPLY

Geetanshu on January 4, 2018 9:31 Am


Hi Shahrukh..
can u help me out for having almost same kind of functionality implement with asp.net and sql server.
i am working with login for admin…admin register user with different roles…one user can have multiple
roles…and based on it….individual or clubbed menus will be displayed…
i have three tables in db….Users, Roles and RolesAllocated
REPLY

Shahrukh Khan on February 13, 2018 8:48 Pm


Hi. Sorry i dont work on asp.net but the solution of the problem is the same.

REPLY

Harmoni PHP Project is based on PHP and can be used by student as their major project.It
consist of three major components: 1) A PHP application framework and architecture,
offering, e.g. authentication, DBC, file storage 2) PHP OKI OSID (service d... 2018 8:28 Pm
what is your error message?

REPLY
Go to Bing homepage
Go to Bing homepage

design report + computer science project pdf or docx

Sign in
AllImagesVideosNews|My saves
Make Bing your search engine
11-20 Of 340,000 Results
11+ Computer Science Resume Templates – PDF, DOC
https://www.template.net/business/resume/computer-science-resume
11+ Computer Science Resume Templates – PDF, DOC The field of computer science is one that is
multifaceted. The subject has found varied uses in different areas like software engineering.

Mechanical Engineering Project Downloads INDEX - PDF, DOC, …


www.faadooengineers.com/threads/465-mechanical-engineering-project...
1/14/2016 · Re: Mechanical Engineering Project Downloads INDEX - PDF, DOC, PPT send me the project
report of "ANTI-LOCK BREAKING SYSTEM IN FOUR WHEELERS" 29th February 2012 , …

Project Design & Proposal Writing - iyfnet.org


https://www.iyfnet.org/.../files/P4L_ProjDesign_PropWritGuide.pdf · PDF file
Project Design & Proposal Writing A Guide to Mainstreaming Reproductive Health into Youth
Development Programs. The International Youth Foundation (IYF) invests in the ... Report Series 886.
Geneva: WHO, 1999. 5 Design Cycle should be utilized for project development when designing a YRH-

Computer Science-Game 5.docx - Department of Computer ...


https://www.coursehero.com/file/24583159/Computer-Science-Game-5docx
Department of Computer Science CMSC132: Fall 2015 Project: Online Test System (Design) Due Date:
Tuesday Nov 10, 11:00pm Overview For this project you will implement the data manager of an online
test system. The system allows for the definition of exams with three possible kinds of questions: true
and false, multiple choice and fill-in-the-blanks questions.

DEVELOPING SKILLS OF NGOS Project Proposal Writing


documents.rec.org/publications/ProposalWriting.pdf · PDF file
The project proposal should be a detailed and directed manifestation of the project design. It is a means
of presenting the project to the outside world in a format that is immediately recognised and accepted.
The training sessions on project proposal writing aim to create an understanding of:

Final Project Report Template - Franklin University


cs.franklin.edu/~smithw/ITEC495_Resources/Samples/FinalWriteUp... · DOC file · Web view
Network Design. This project did not require the team to design a network because Nationwide
Children’s Hospital already had an established network. The project involved one server to be added to
a network consisting of over 350 servers and over a thousand workstations.

REPORT.docx | C (Programming Language) | Archery


https://www.scribd.com/document/254932904/REPORT-docx
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING SHRI RAM MURTI SMARAK COLLEGE OF
ENGINEERING AND TECHNOLOGY,BAREILLY May,2014-15 PROJECT REPORT ON “BOWMASTER”
Submitted By Jyotsana singh Kajal verma Saloni Priyanka verma ... Documents Similar To REPORT.docx.
IJF2018(Revised Data 6th December 2017) Uploaded by. Munni. B.tech Sem 1st …

MANUALLY OPERATED PUNCH PRESS DESIGN REPORT DRAFT 3 - ohio.edu


https://www.ohio.edu/.../design/SrD08_09/T1_FinalDesignReport.pdf · PDF file
ghout report. Report (primarily design and development sections): B ... the design team will develop a
“big picture” design of the project chosen and break the project down to a component level. This will
allow the team to design, model, and analyze components using computer aided design tools to
understand their engineering capability ...

FORMAT FOR PREPARATION OF PROJECT REPORT


https://www.annauniv.edu/academic_courses/docs/ugthesis.pdf · PDF file
FORMAT FOR PREPARATION OF PROJECT REPORT FOR B.E. / B. TECH. / B. ARCH. 1. ARRANGEMENT OF
CONTENTS: The sequence in which the project report material should be arranged and bound should be
as follows: 1. Cover Page & Title Page 2. Bonafide Certificate 3. Abstract 4. Table of Contents 5. List of
Tables 6. List of Figures 7.

Acknowledgement sample for school project | Rohit Yadav ...


www.academia.edu/10408497/Acknowledgement_sample_for_school_project
docx. Acknowledgement sample for school project. 2 Pages. ... Rohit Yadav. Elhanan Helpman.
Acknowledgement sample for school project Sample No.1 I would like to express my special thanks of
gratitude to my teacher (Name of the teacher) as well as our principal (Name of the principal)who gave
me the golden opportunity to do this wonderful ...

TRENDING
Multiple dropdown with jquery ajax and php

Search...
Facebook Fan PageTwitter HandleLinkedInYoutubeRSS
thesoftwareguy.in
thesoftwareguy.in shop
HomePHP
Snippet
Patterns & SeriesJqueryShopProjects & Demos
About Me

YOU ARE AT:Home»Category: "PHP"


Browsing: PHP
PHP is a server-side scripting language designed for web development, checkout amazing php tutorials,
video and many more php related scripts. View live demo and download source code for free.

JQUERY
Change country flags and ISD code using PHP MySQL Ajax and jQuery
APRIL 5, 2016 7
Change country flags and ISD code using PHP MySQL Ajax and jQuery
In this tutorial you will learn how to change country flags and ISD code using PHP MySQL Ajax and
jQuery. Get results in json format and parse via jquery and display country flag and isd code. View demo
and download script

PHP
Encode and Decode query string value in php
MARCH 25, 2015 13
Encode and Decode query string value in php
When developing a search module/ filter for some kind of listing that will be accessible to public it is
advised not to show the actual ID to them, they may use the ID to do something notorious stuff. In this
tutorial you will learn how to encode and decode query string value in php.

PHP
Calculating difference between two dates in php
FEBRUARY 15, 2015 22
Calculating difference between two dates in php
In this tutorial I will be explaining the technique for calculating difference between two dates in php.
You can use this technique to get total days, minutes, seconds months, years.

PHP
Send email from localhost online server using php
JANUARY 14, 2015 60
Send email from localhost/online server using php
Sending emails from localhost is one of the most frequently asked question from young learners. In this
tutorial I will be explaining to send email from localhost/online server using php.

PHP
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
Last two weeks I was quite busy with projects and hardly had any spare time left for writing blogs. I had
a huge backlog of mails requesting for tutorials. One thing I found common among them was creating a
multi user role based admin feature. I googled for the article so I can give them links but I was not able
to find useful tutorial. So i decided to make it myself for my blog readers. In this tutorial I will be
Creating multi user role based admin using php mysql and bootstrap library.
PHP
Login System with twitter using OAuth php and mysql
OCTOBER 13, 2014 8
Login System with twitter using OAuth php and mysql
Twitter is the last part of my “login system with social sites” series. In this tutorial I will be explaining
how to create a twitter app for website and integrating the Login System with twitter using OAuth php
and MySQL.

PHP
Mobile Detect with PHP
SEPTEMBER 12, 2014 3
Mobile Detect with PHP
Using Mobile detect with PHP library we can get details of their devices like their platform, versions,
browsers etc. It helps in keeping track of the data which will benefit the website owner.

PHP
Ajax scroll down pagination with Php and Mysql
AUGUST 26, 2014 31
Ajax scroll down pagination with Php and Mysql
In this tutorial it has two demos; first one where records are displayed when you scroll down to the
bottom of the page and the other one is where you scroll down the page and you get a button asking to
display next set of data.

PHP
Clear session after 15 minutes of user inactivity using php
AUGUST 14, 2014 9
Clear session after 15 minutes of user inactivity using php
In this tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME
Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously
CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME
Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
his tutorial I will explain how to clear session after 15 minutes of user inactivity using PHP.

PHP
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
In this tutorial I will explain User Registration with Email Verification using PHP and Mysql. I have used
php-mailer library so you can send mail via your google account from your local server itself.

1234Next
ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Entrepreneur & Dreamer
I am a passionate Software Professional, love to learn and share my knowledge with others.
Software is the hardware of my life
GET MORE STUFF
IN YOUR INBOX
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Enter your email here


we respect your privacy and take protecting it seriously

CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares

Enter your email here


we respect your privacy and take protecting it seriously
CATEGORIES
Achievements/Personal (6)
Facebook (8)
Interview (1)
Jquery (21)
Patterns & Series (1)
PHP (33)
PHP Tutorial (6)
Projects (10)
Mini Projects (6)
Premium Projects (4)
Snippet (45)
Jquery / Javascript Snippet (12)
MySQL Snippet (7)
PHP Snippet (26)
Tips & Tricks (10)
RECENT POSTS
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
DECEMBER 8, 2018 0
Top 10 Free Ready-Made HTML design for your inspiration from Template.net
print star pattern triangle in php
JUNE 19, 2017 3
Print star pattern triangle in PHP – Set 1
bloodunison - blood donors meet receivers
MAY 16, 2017 0
BloodUnison – Blood donors meet receivers
thesoftwareguy turn 3 years old
JULY 26, 2016 6
thesoftwareguy turn 3 years old
Mysql Snippet
JULY 13, 2016 0
Add drop unique key in MySql
POPULAR POSTS
Creating multi user role based admin using php mysql and bootstrap
NOVEMBER 20, 2014 189
Creating multi user role based admin using php mysql and bootstrap
How to create a simple dynamic website with php and mysql
DECEMBER 10, 2013 183
How to create a simple dynamic website with php and mysql
User Registration with Email Verification using PHP and Mysql
JULY 24, 2014 158
User Registration with Email Verification using PHP and Mysql
Upload multiple images create thumbnails and save path to database with php and mysql
MAY 15, 2014 123
Upload multiple images create thumbnails and save path to database with php and mysql
Online Examination System
SEPTEMBER 16, 2014 113
Online Examination System
LIKE US ON FACEBOOK

Copyright © 2013 - 2018 www.thesoftwareguy.in All Rights Reserved.


Creative Commons License
www.thesoftwareguy.in by Shahrukh Khan is licensed under a Creative Commons Attribution-ShareAlike
4.0 International License.
Protected by Copyscape
Share to Facebook
, Number of shares
Share to Twitter
Share to Print
Share to Email
Share to Pinterest
, Number of shares
More AddThis Share options
, Number of shares30
1
2
3
4
5
6
© 2019 Microsoft
Privacy and CookiesLegalAdvertiseHelpFeedback

Adnan Khan on March 4, 2018 3:41 Am


Hi Shahrukh,

Your tutorial is great but i have one issue i am beginner and i don’t know about PDO can you convert it
into mysqli plzzzzzzzzzzzz my one project stuck due to this issue plzzzzzzzzz can you do this or anybody.

REPLY

Shahrukh Khan on March 8, 2018 12:42 Pm


pdo and mysql are almost same, just the syntax are different. rest both of them are use for database
connectivity

REPLY

Rashid Ahmed Barbhuyan on March 8, 2018 12:59 Pm


Assalamualaikum! I m working on xampp server. How can I add “edit, view, delete & add” link on the
module pages?

REPLY
Shahrukh Khan on August 5, 2018 10:59 Am
hi. download my zip file. its a great way to get started.

REPLY

Sanjay Namdeo on June 14, 2018 8:03 Am


you dont share how to create role_rights table
you only insert into values.

REPLY

Sanjay Namdeo on June 14, 2018 8:13 Am


i get file on code zip.
thanks bro this is great work…

REPLY

Shahrukh Khan on July 29, 2018 8:33 Am


you are welcome.

REPLY

Shahrukh Khan on July 29, 2018 8:15 Am


the database schema is available for download here.
https://app.box.com/s/bzkb3x94rojnnpvi328d

REPLY

Frisör Gävle on July 30, 2018 10:19 Pm


I must thank you for the efforts you have put in penning this site.
I really hope to check out the same high-grade content from you later on as
well. In truth, your creative writing abilities has inspired me to get my
own site now 🙁

REPLY

Ss on August 13, 2018 3:22 Pm


why didont add payment ?

REPLY

Shahrukh Khan on August 29, 2018 9:00 Am


means?

REPLY

Thokchom on September 21, 2018 11:04 Am


Thanks buddy
REPLY

Rizal on September 24, 2018 1:48 Am


can you give me sample with “mysqli” ?

REPLY

Shahrukh Khan on December 14, 2018 9:59 Am


mysqli and pdo are almost same.

REPLY

Shreya on December 13, 2018 10:30 Am


Hi
I am looking for the same code but not in PDO .
I want to make same functionality as u provide,can u help me for build same in mysqli.

Thankss

REPLY

Shahrukh Khan on December 14, 2018 9:30 Am


Hi Shreya, if you know mysqli then just the connection part and the query execution code construct is
different, rest are same.
check this link below
http://php.net/manual/en/function.mysqli-connect.php
http://php.net/manual/en/mysqli.query.php
http://php.net/manual/en/mysqli.real-escape-string.php

REPLY
LEAVE A REPLY

Your Comment

Your Name

Your Email

Your Website

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Confirm you are NOT a spammer


CommentLuv badge
This site uses Akismet to reduce spam. Learn how your comment data is processed.

ABOUT ME

Shahrukh khan facebook profile Shahrukh Khan google plus profileShahrukh khan twitter handle
Shahrukh Khan
Harmoni PHP Project is based on PHP and can be used by student as their major project.It
consist of three major components: 1) A PHP application framework and architecture,
offering, e.g. authentication, DBC, file storage 2) PHP OKI OSID (service d...

Das könnte Ihnen auch gefallen