A Project Report Cerificate (1) (5) - 1
A Project Report Cerificate (1) (5) - 1
A Project Report Cerificate (1) (5) - 1
on
e-pets space
Submitted in partial fulfillment of the requirement for the awards of the
degree in
SUNIL M(R1910458)
Under the Guidance of
Mrs. NISHA D
Mahayogi Vemana Road, 16th Main Road , 3rd Block ,Koramangala, Bengaluru -560034.
A Project Report
on
e-pets space
Submitted in partial engulfment of the requirement for the awards of the
degree in
SUNIL M(R1910458)
Under the Guidance of
Mrs. NISHA D
CERTIFICATE
This is certify that the Project work entitled
“e-pets space”
Submitted in partial fulfillment of the requirement for the award of the degree
of
SUNIL M(R1910458)
During the academic year 2021-2022
DECLARATION
I, Sunil M(R1910459) student of 5th semester, BCA, RJS First Grade College,
hereby declare that the project entitled ”e-pets space” has been carried out by
me under the guidance of Mrs. Nisha D, Department of Computer Science &
Applications, RJS First Grade College, Bengaluru and submitted in partial
fulfillment of the requirement for the award of the degree of Bachelor of
Computer Applications by the Bengaluru City University during the academic
year 2021-2022. This report has not submitted to any other Organization
/University for any award of degree or certificate.
Date: Name:
Place: Signature:
ACKNOWLEDGEMENT
Finally, I thank all the staffs of BCA department who have been a
source of inspiration for accomplishing the project successfully.
CONTENTS
Sl.No TITLE Page No.
Abstract
1 Introduction
Description of the Project
2 Literature Survey
Existing and Proposed System
Feasibility Study
Tools and Technologies used
Hardware and Software Requirements
3 Software Requirement Specification
Admin and Users
Functional Requirements
Non-Functional Requirements
4 System Design
System Perspective
Context Diagram
5 Detailed Design
Use Case Diagram
Sequence Diagram
Collaboration Diagram
Activity Diagram
Data Flow Diagram
Database Design
Architecture Design
ER Diagram
6 Implementation
6.1 Screen Shots
7 Software Testing
Levels of Testing
Test Cases
8 Conclusion
9 Future Enhancements
10 Bibliography
ACKNOWLEDGEMENT
ABSTRACT
INTRODUCTION
Admin Dashboard
Pet Shop Front end
Available Products
Product CRUD
Purchase Products
Special Offers
Print Reports
Contacts
User CRUD
APACHE
The Apache HTTP Server Project is an effort to develop and maintain an open-
source HTTP server for modern operating systems including UNIX and
Windows. The goal of this project is to provide a secure, efficient and
extensible server that provides HTTP services in sync with the current HTTP
standards.
The Apache HTTP Server("httpd") was launched in 1995 and it has been the
most popular web server on the Internet since April 1996. It has celebrated its
20th birthday as project in February 2015.
PHP
MYSQL
• Not user friendly: The present system is not user friendly because
data is not stored in structure and proper format.
Design Introduction:
Design is the first step in the development phase for any techniques
and principles for the purpose of defining a device, a process or
system in sufficient detail to permit its physical realization.
Once the software requirements have been analysed and specified the
software design involves three technical activities - design, coding,
implementation and testing that are required to build and verify the
software.
The design activities are of the main importance in this phase, because
in this activity, decisions ultimately affecting the success of the
software implementation and its ease of maintenance are made. These
decisions have the final bearing upon reliability and maintainability of
the system. Design is the only way to accurately translate the
customer's requirements into finished software or a system.
UML Diagrams:
ACTOR:
A coherent set of roles that users of use cases play when interacting
with the use cases.
USE CASE:
A description of sequence of actions, including variants, that a system
performs that yields an observable result of value of an actor.
Use case diagram can be useful for getting an overall view of the
ystem and clarifying who can do and more importantly what they
can't do.
Use case diagram consists of use case and actors and shows the
interaction between the use case and actors.
• The purpose is to show interactions between the use case and actor •
To represent the system requirements from user's perspective • An
actor could be the end-user of the system or an external
system.
USECASE DIAGRAM:
ER NOTATION:
There is no standard for representing data objects in ER diagrams.
Each modelling methodology uses its own notation. The original
notation used by Chen is widely used in academics texts and journals
but rarely seen in either CASE tools or publications by non
academics. Today, there are a number of notations used, among
IDEFIX
ADDCNP:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="images/foods/logo.png" rel="shortcut icon">
<title>ADMIN | Petshop Online Website</title>
</head><!--/head-->
<body>
<nav class="navbar navbar-inverse" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><img src="images/logo.jpg"
width="35% " /><i class="wow fadeInDown" style="margin-top:-
2%; color:#FFF;"></i></a>
</div>
<?php
include('includes/availablepackage.php');
?>
<br>
<!--***************************************************
FOOTERS
**********************************************-->
<footer id="footer" class="midnight-blue">
<div class="container">
<div class="row">
<div class="col-sm-12">
<center>© 2019 <a target="_blank" href="#"
title="#">Petshop Online Websit</a>. All Rights Reserved.</center>
</div>
</div>
</div>
</footer><!--/#footer-->
</script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>
ADDMIN ACC:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="images/logo.jpg" rel="shortcut icon">
<title>ADMIN | Petshop Online Websitealasan Quary</title>
<!-- core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
</head><!--/head-->
<body>
<nav class="navbar navbar-inverse" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><h4 class="wow fadeInDown"
style="margin-top:20px; color:#FFF;"><img src="images/logo.jpg"
width="15% "/> Petshop Online Website</h4></a>
</div>
}
?>
</dl>
<hr>
</div>
<form class="form-horizontal" name="adminacc"
id="adminacc" method="POST" action="adminacc_process.php"
style="margin-top: 20px;">
<table>
<tr>
<td style="text-align:right;font-
weight:bold;">Profile Avatar:  </td>
<td style="text-align:center;">  <input
type="file" name="image" required /></td>
</tr>
</table>
<div class="form-group">
<label for="name" class="col-sm-4 control-label wow
fadeInDown">Admin Name</label>
<div class="col-sm-6">
<input type="text" class="form-control wow
fadeInDown" id="name" name="proprietor_name" placeholder="<?
php echo $name?>" required>
</div>
</div>
<div class="form-group">
<label for="username" class="col-sm-4 control-label
wow fadeInDown">Phone</label>
<div class="col-sm-6">
<input type="text" class="form-control wow
fadeInDown" id="Phone" name="phone" placeholder="<?php echo
$phone?>"required>
</div>
</div>
<div class="form-group">
<label for="username" class="col-sm-4 control-label
wow fadeInDown">Email</label>
<div class="col-sm-6">
<input type="email" class="form-control wow
fadeInDown" id="email" name="email" placeholder="<?php echo
$email?>"required>
</div>
</div>
<div class="form-group">
<label for="username" class="col-sm-4 control-label
wow fadeInDown">Username</label>
<div class="col-sm-6">
<input type="text" class="form-control wow
fadeInDown" id="username" name="nuname" placeholder="Enter
Username" required>
</div>
</div>
<div class="form-group">
<label for="npassword" class="col-sm-4 control-label
wow fadeInDown">Password</label>
<div class="col-sm-6">
<input type="password" class="form-control wow
fadeInDown" id="npassword" name="npword" placeholder="Enter
Password" required>
</div>
</div>
<hr>
<em style="color:red;" class="wow fadeInDOwn"> Note
Fill up the fields before hitting save changes button</em>
<div class="form-group">
</div>
<script>
$("#page").removeClass();
$("#messages").removeClass();
$("#admin").addClass("active");
$("#infomsg").hide();
$('#submit').click( function() {
$.post( $("#adminacc").attr("action"),
$("#adminacc :input").serializeArray(),
function(info) {
$("#infomsg").show();
$("#infomsg").empty();
$("#infomsg").html(info);
});
$("#adminacc").submit( function() {
return false;
});
});
</script>
<br><br><br>
<!--***************************************************
FOOTERS
**********************************************-->
</script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>
ADMINACC_PROCESS:
<?php
session_start();
include('includes/dbconn.php');
if(isset($_POST['update'])){
$username = $_SESSION['username'];
$password = $_SESSION['password'];
$id = $_SESSION['proprietor_id'];
$name = $_POST['proprietor_name'];
$phone = $_POST['phone'];
$mail = $_POST['email'];
$nusername = $_POST['nuname'];
$npassword = $_POST['npword'];
if (empty($nusername) || empty($npassword))
echo "Please fill all fields";
else {
$result = mysqli_query($sql);
if(mysqli_num_rows($result)==0){
echo "Invalid username and password";
header("location:adminacc.php");}
else
{
$sql=("UPDATE admininfo SET name='$name',
contact='$phone',
email =
'$mail',
username='$nusername',
window.location.href='adminacc.php';</script>";
}
}}
else if (isset($_POST['save'])) {
$username = $_SESSION['username'];
$password = $_SESSION['password'];
$id = $_SESSION['proprietor_id'];
$name = $_POST['proprietor_name'];
$address = $_POST['address'];
$phone = $_POST['phone'];
$nusername = $_POST['nusername'];
$npassword = $_POST['npassword'];
$dob = $_POST['date'];
$type = $_POST['type'];
if (empty($nusername) || empty($npassword))
echo "Please fill all fields";
else {
$result = mysqli_query($sql);
if(mysqli_num_rows($result)==0){
echo "Invalid username and password";
header("location:adminacc.php");}
else
{
$sql=("INSERT INTO userinfo
VALUES(NULL,'$name','$address','$phone','$dob','$nusername','$np
assword','$type')") or die(mysqli_error());
$result=mysqli_query($con, $sql);
}
mysqli_close($con);
?>
<?php
session_start();
include('includes/dbconn.php');
$myuser = mysqli_real_escape_string($con,
$_POST['username']);
$mypass = mysqli_real_escape_string($con,
$_POST['password']);
$result=mysqli_query($con, $sql);
if (mysqli_num_rows($result)>0){
while ($row = mysqli_fetch_assoc($result))
{
$_SESSION['proprietor_id'] =
$row['id'];
$_SESSION['proprietor_name'] =
$row['name'];
$_SESSION['email'] =
$row['email'];
$_SESSION['phone'] =
$row['contact'];
$_SESSION['username'] =
$row['username']; //get username
$_SESSION['password'] =
$row['password']; //get password
}
header("location:index.php");
}else{
echo '<script>
window.alert("Your not registered user!")
window.location.href="index.php";
</script>';
}
mysqli_close($con);
?>
AVAILABLE:
<?php
session_start();
if (!isset($_SESSION['username'])){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- <link href="images/logo.jpg" rel="shortcut icon"> -->
<title>Petshop Online Website</title>
</head><!--/head-->
<!--*********************************************START
OF NAVIGATION
BAR****************************************-->
<body>
</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->
<!--*********************************************START
OF
Availables***********************************************
*-->
</div>
</div>
</section>
<!--***************************************************
FOOTERS
**********************************************-->
<?php include('includes/footer.php');?>
<!----------loginModal----------->
<?php include('loginModal.php')?>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>
<?php
} else if(isset($_SESSION['username'])) {
include('includes/admin.php');
} ?>
AVAILABLE FRAME:
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="images/foods/logo.png" rel="shortcut icon">
<title>Petshop Online Website</title>
<!-- core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<!--*********************************************START
OF NAVIGATION
BAR****************************************-->
<?php include('includes/dbconn.php');
$count = 0;
$id = 0;
$sql = "SELECT * FROM tblcnp WHERE status = 'available'
order by id desc" or die (mysqli_error($con));
if(mysqli_num_rows($result)>=0){
while($row = mysqli_fetch_assoc($result)){
$id = $row['id'];
$count++;
?>
</div>
<div class="modal-footer">
?>
</table>
<?php include('includes/dbconn.php');
if(isset($_POST['savechanges'])){
$id = $_POST['foodid'];
$name = $_POST['name'];
$address = $_POST['address'];
$contact = $_POST['contact'];
$qty = $_POST['oqty'];
$otype = $_POST['otype'];
$datep = $_POST['datep'];
window.loaction.href="availableframe.php";</script>';
}
else{
window.location.href="availableframe.php"</script>';}
else{
echo '<script>alert("Sorry unable to process your request. please try
again later!");
window.location.href="availableframe.php"</script>';
}
} }
?>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
<script type="text/javascript">
$("#datepickup").hide();
$(document).ready(function(){
$("select").change(function(){
$(this).find("option:selected").each(function(){
if($(this).attr("value")=="Pick-up"){
$("#datepickup").show(200);
}
else{
$("#datepickup").hide();
});
}).change();
});
</script>
CONTACTS:
<?php
session_start();
if (!isset($_SESSION['username'])){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- <link href="images/logo.jpg" rel="shortcut icon"> -->
<title>Petshop Online Website</title>
</head><!--/head-->
<!--*********************************************START
OF NAVIGATION
BAR****************************************-->
<body>
</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->
<!--*********************************************START
OF CONTACT
INFO****************************************-->
<body>
<br><br>
<div class="container">
<section id="contact-info">
<center><span style="font-size:35px; font-weight:bold;
font-family:verdana; color:blue;">How to Reach
Us?</span></center>
<div class="left wow fadeInDown">
<
<div class="col-md-6">
<img src="images/logo.jpg" class="img-responsive pull-
right" />
</div>
<div class="col-md-6">
<p class="lead">
<br>
<p><span style="font-size:20px; font-weight:bold; font-
family:verdana; color:red;">PET SPACE</span>
<br><b>Address:</b> Rjs Fg
College,Koramangala,Bangalore -560034<b><br>Tel/Phone:</b>
+91 7795822296 / <b><br>Email Address:</b>
[email protected]</p>
<hr>
<span style="font-size:20px; font-weight:bold; font-
family:verdana; color:Violet;">We are open</span>
<p><b>MONDAY TO FRIDAY -- 8:00AM -
5:00PM</b></p>
</p>
<hr>
<table style="width:80px;">
<tr>
<td><a href="http://www.facebook.com"><img data-
toggle="tooltip" src="images/ico/Facebook.png" class="img-
responsive" /></a></td>
<td><a href="http://www.instagram.com"><img
src="images/ico/icons_Instagram.png" class="img-responsive"
/></a></td>
<td><a href="http://www.twitter.com"><img
src="images/ico/Twitter.png" class="img-responsive" /></a></td>
<td><a href="http://www.youtube.com"><img
src="images/ico/YouTube.png" class="img-responsive" /></a></td>
</tr>
</table>
</div>
</div>
</section>
</div>
<br><br>
<!--***************************************************
FOOTERS
**********************************************-->
<?php include('includes/footer.php');?><!--/#footer-->
<?php include('loginModal.php')?>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>
<?php
} else if(isset($_SESSION['username'])) {
include('includes/admin.php');
} ?>
<?php
include('includes/dbconn.php');
$customer_id = $_POST['customer_id'];
$sql=("DELETE FROM tbl_customer WHERE customer_id
='$customer_id'") or die(mysqli_error());
$result=mysqli_query($con, $sql);
?>
DELETE MODAL:
<?php session_start();
include('includes/dbconn.php');
if(isset($_POST['delete'])){
$id = $_POST['id'];
$sql= ("DELETE from tblcnp WHERE id = '$id'") or die
(mysqli_error());
$result=mysqli_query($con, $sql);
header("location:update_cnp.php");
}?>
INDEX:
<?php
session_start();
if (!isset($_SESSION['username'])){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- <link href="images/logo.jpg" rel="shortcut icon"> -->
<title>Petshop Online Website</title>
<!--*********************************************START
OF NAVIGATION
BAR****************************************-->
<body>
</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->
<!--*********************************************START
SLIDER************************************************--
>
<div class="container-fluid">
<br>
<div class="col-md-9 wow fadeInDown">
<div id="carousel-example-generic" class="carousel slide"
data-ride="carousel" style="background-color:#000; padding:10px;">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-
to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-
to="1"></li>
<li data-target="#carousel-example-generic" data-slide-
to="2"></li>
<li data-target="#carousel-example-generic" data-slide-
to="3"></li>
</ol>
<div class="">
<img src="images/logo.jpeg" alt="" class="">
</div>
</div>
<!--*********************************************Food
PACKAGES*********************************************
***-->
</div>
</div>
</ul>
<a href="available.php" class="btn btn-success btn-sm pull-
right wow fadeInDown">Click here to View More</a>
</div>
<br>
<div class="panel panel-default wow fadeInDown">
<div class="panel-heading wow fadeInDown"
style="font-size:16px; font-weight:bold; color: #36648B;">Our
Location</div>
</div>
<div class="recent-work-inner">
<a class="preview wow fadeInDown"
href="images/map1.jpg" rel="prettyPhoto"><br><span class="btn
btn-success btm-sm pull-right">Preview Map</span></a>
</div>
</div>
</div>
</div>
</div><!--/.container-->
<br><br>
<!--***************************************************
FOOTERS
**********************************************-->
<footer id="footer" class="midnight-blue wow fadeInDown">
<div class="container">
<div class="row">
<div class="col-sm-6 wow fadeInDown">
© 2021 <a target="_blank" href="#" title="#">Petshop
Online Website</a>. All Rights Reserved (CampCodes).
</div>
<div class="col-sm-6">
<ul class="pull-right wow fadeInDown">
<li class="wow fadeInDown"><a href="index.php"><i
class="fa fa-home"></i> Home</a></li>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>
<?php
} else if(isset($_SESSION['username'])) {
include('includes/admin.php');
} ?>
LOGIN MODEL:
</div>
<br />
<center><i class="fa fa-user"></i> Welcome
Admin</center>
<form class="form-horizontal wow fadeInDown"
method="POST" action="adminlogin_process.php">
<div class="form-group">
<label for="name" class="col-sm-4
control-label wow fadeInDown">Username</label>
<div class="col-sm-6">
<input type="text" class="form-control
wow fadeInDown" id="name" name="username" placeholder="Enter
Username" onKeyPress="return isNotAlphanumeric(event)"
required />
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-4
control-label wow fadeInDown">Password</label>
<div class="col-sm-6">
<input type="password" class="form-
control wow fadeInDown" id="name" name="password"
placeholder="Enter Password" onKeyPress="return
isNotAlphanumeric(event)" required>
</div>
</div>
<div class="modal-footer wow
fadeInDown" style="padding-right:110px;">
<button type="submit" class="btn btn-
info wow fadeInDown"><span class="glyphicon glyphicon-log-
in"></span> Login</button>
<button type="reset" class="btn btn-
default wow fadeInDown">Clear</button>
<button type="button" class="btn btn-
danger wow fadeInDown" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>
LOGOUT PROCESS:
<?php
session_start();
if(isset($_GET['logout'])) {
unset ($_SESSION['id']);
unset($_SESSION['username']);
unset($_SESSION['password']);
header('location:index.php');
} else {
echo mysqli_error();
}
?>
UPDATE CNP:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="images/foods/logo.png" rel="shortcut icon">
<title>ADMIN | Petshop Online Website</title>
</head><!--/head-->
<body>
<nav class="navbar navbar-inverse" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><h4 class="wow fadeInDown"
style="margin-top:20px; color:#FFF;"><i class="fa fa-coffee"></i>
Ordering Product</h4></a>
</div>
<?php
include('includes/updateavailables.php');
?>
<br>
<!--***************************************************
FOOTERS
**********************************************-->
</script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>
<?php
session_start();
include('includes/dbconn.php');
if(isset($_POST['pixsubmit'])){
$package = $_POST['package'];
$size = $_POST['size'];
$prize = $_POST['prize'];
$status = $_POST['status'];
//image
$image =
addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']
['name']);
$image_size = getimagesize($_FILES['image']
['tmp_name']);
//
move_uploaded_file($_FILES["image"]
["tmp_name"], "upload/" . $_FILES["image"]["name"]);
$location = "upload/" . $_FILES["image"]
["name"];
echo '<script>
window.alert("Sucessfully Updated!")
window.location.href="FBW.php";
</script>';
}
else if(isset($_POST['secondsubmit'])){
$package = $_POST['package'];
$size = $_POST['size'];
$prize = $_POST['prize'];
$status = $_POST['status'];
//image
$image =
addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']
['name']);
$image_size = getimagesize($_FILES['image']
['tmp_name']);
//
move_uploaded_file($_FILES["image"]
["tmp_name"], "upload/" . $_FILES["image"]["name"]);
$location = "upload/" . $_FILES["image"]
["name"];
echo '<script>
window.alert("Sucessfully Updated!")
window.location.href="FBW.php";
</script>';
}
if(isset($_POST['thirdsubmit'])){
$package = $_POST['package'];
$size = $_POST['size'];
$prize = $_POST['prize'];
$status = $_POST['status'];
//image
$image =
addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']
['name']);
$image_size = getimagesize($_FILES['image']
['tmp_name']);
//
move_uploaded_file($_FILES["image"]
["tmp_name"], "upload/" . $_FILES["image"]["name"]);
$location = "upload/" . $_FILES["image"]
["name"];
?>
UPDATE MODEL:
</div></div><br>
<div class="row">
<div class="col-lg-2">
<label class="pull-right">Description*</label>
</div>
<div class="col-lg-10">
</form>
</div>
</div>
</div>
<?php include('includes/dbconn.php');
if(isset($_POST['savechanges'])){
$id = $_POST['fdid'];
$name = $_POST['name'];
$des = $_POST['des'];
$stat = $_POST['stat'];
$prize = $_POST['prize'];
//image
$image =
addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']
['name']);
$image_size = getimagesize($_FILES['image']
['tmp_name']);
//
move_uploaded_file($_FILES["image"]
["tmp_name"], "upload/" . $_FILES["image"]["name"]);
$location = "upload/" . $_FILES["image"]
["name"];
description = '$des',
status = '$stat',
prize = '$prize',
window.location.href="update_cnp.php"</script>';
}
else{
echo '<script>alert("Sorry unable to
process your request!");
window.location.href="update_cnp.php"</script>';
}
}
mysqli_close($con);
?>
……………….SCREEN SHOTS……………………………….
ADMIN LOGIN:
Product :
Orders:
Contacts:
CONCLUSION & FUTURE ENHANCEMENT
BIBILIOGRAPHY
For PHP
https://www.w3schools.com/php/default.asp
https://www.sitepoint.com/php/
https://www.php.net/
For MySQL
https://www.mysql.com/
http://www.mysqltutorial.org
https://www.apachefriends.org/download.html
: