Inventory Management System Using PHP

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 36

CASE STUDY REPORT

ON
DATABASE MANAGEMENT SYSTEM

INVENTORY
MANAGEMENT SYSTEM

BY

BINCY S BIJU(811201108)

ATHIRA BABU(811201107)

Submitted in partial fulfillment of the


Requirements for the award M.Sc (Computer Science) degree of
University of Kerala
2020-2022

SCHOOL OF DISTANCE EDUCATION


UNIVERSITY OF KERALA
KARIYAVATTOM
DECLARATION
I hereby declare that the work presented in the case study titled (topic
name) is an the original work done by us under the guidance of Mrs. (guide Name)
Lecturer of Computer Science department. The same work has not been submitted
elsewhere or any other degree.

BINCY S BIJU

ATHIRA BABU
SCHOOL OF DISTANCE EDUCATION
UNIVERSITY OF KERALA
KARIYAVATTOM

CERTIFICATE

This is to certify that the project report entitled “ INVENTORY MANAGEMENT


SYSTEM” submitted to School of Distance Education, University of Kerala in partial
fulfillment of the requirement for the award of the Degree of MASTER OF COMPUTER
SCIENCE, is an authentic and original work carried out by BINCY S BIJU (811201108) and
ATHIRA BABU(811201107).

External Examiner1
Lecturer in charge

External Examiner2
ACKNOWLEDGEMENT

We gratefully acknowledge the support and kind hearted cooperation by (Coordinator Name)
Coordinator of M.Sc.Computer Science department.

(Include your Guide also)

We extend our heartfelt thanks to our classmates, friends and well wishers who helped us to
make this case study success. Above all we are thankful to God, almighty for the strength and
presence of mind to complete these studies work successfully, we humbly solicit and
almighty’s blessings. Our sincere thanks and apologies to anyone who deserve the credit but
whose names fail to appear in the list above.

BINCY S BIJU

ATHIRA BABU
ABSTRACT

An inventory management system project that allow s user to manage and maintain his/her
inventory with ease. The inventory management system has been developed to allow users to add
an inventory, delete an inventory, enter inventory quantity and other details, update inventory
status and more. The inventory management system has its own intelligently managed support
system that allows user to view and manage various inventories added in the system. We aim to

demonstrate the use of create, read, update and delete MySQL operations through this project.
CONTENTS

1. INTRODUCTION
2. SYSTEM STUDY
2.1 EXISTING SYSTEM
2.2 PROPOSED SYSTEM
3. SYSTEM REQUIREMENTS
3.1 HARDWARE REQUIREMENTS
3.2 SOFTWARE REQUIREMENTS
4. SYSTEM ANALYSIS
4.1 FEASIBILITY STUDY
4.2 TECHNICAL FEASIBILITY
4.3 ECONOMICAL FEASIBILTY
4.4 SOCIAL FEASIBILITY
4.5 BEHAVIOURAL FEASIBILITY
4.6 ABOUT THE PROJECT
5. SYSTEM DESIGN
5.1 MODULE DESCRIPTION
5.2 INPUT DESIGN
5.3 OUTPUT DESIGN
5.4 DATA FLOW DIAGRAM (DFD)
6. IMPLEMENTATION AND SYSTEM TESTING
6.1 IMPLEMENTATION
6.2 SYSTEM TESTING
7. SOURCE CODE
8. OUTPUT SCREENSHOTS
9. CONCLUSION
10. BIBLIOGRAPHY
1. INTRODUCTION

The Simple Inventory System In PHP is a simple case study developed using PHP, JavaScript,
and CSS. It contains only admin side. The admin side manages all the management like editing
site contents, adding products, brands, categories, etc. The admin/member has to login to use this
system.

It can only add products and update their details in this system. This case study makes a
convenient way for the store/inventory admin to keep the records of products and orders in a
proper way.

Objectives
This Inventory System is in PHP, JavaScript, Bootstrap, and CSS. Talking about the
features of this system, it contains the admin section only. All the editings, updating, managing
products are from the admin section. The design of this system is simple so that the user won’t
get any difficulties while working on it.
SYSTEM STUDY
2. SYSTEM STUDY
2.1 Existing System
Existing system is file system method is a type of data storing method where we can save
the data. Most of the operations in the existing system of this project is to do basic operations.

Drawbacks of existing system :


• When we use the file system, data can be lost.
• Not efficient
• Difficult to manage the file system

• Manpower is needed

• Time consuming

• Difficult to manage the file system

2.2 Proposed System


This proposed system help us to manage inventory management Information . Few
features of this system are:
• This software is more efficient and easy to use.
• Easy to manage and manpower is not needed.
• User can easily understand the operations what is happening in background.
• Here we can add , delete and view the details.
• More efficient than the existing system
• The current application provides most unique features than the before systems in current
real world market.
SYSTEM REQUIREMENTS
3. SYSTEM REQUIREMENTS
3.1 SOFTWARE REQUIREMENTS:
 Operating System : Windows 7 and above
 Backened : Php
 UI Design : HTML, Javascript, CSS
 Web Server : Wamp server
 Database : MySQL
3.2 HARDWARE REQUIREMENTS:
 Processor : Intel Pentium III or above
 Hard disk : 20GB & above
 RAM : 256 MB & above
 Monitor : SVGA Color Monitor
 Keyboard : Multimedia Keyboard
SYSTEM DESIGN
4. SYSTEM DESIGN

System design is the process of the problem solving and planning for a software solution. A
software design may be as simple as a flowchart or text describing a planned sequence of events.
In other case, some documentation of the plan is usually the product of the design. A software
design may be platform independent or platform specific, depending on the availability of the
technology called for by the design.

4.1 Input Design


The input design is the process of converting the user oriented inputs into the
computer based format. Therefore, the user interface design is very important for any
applications. It defines how the software communicates with in itself to system that
implemented with it and with human who use it. If the interface design is very good, the
user will fall into a software applications.

4.2 Output Design


Computer output is the most important and direct source of information to user
efficient, intelligible output design should improve the system’s relationships with the
user and help in decision making. It provides a means of storage by copying the result for
later reference.
4.3 Data Flow Diagram
A data-flow diagram ( DFD )is a way of representing a flow of a data of a process
or a system. The DFD also provides information about the outputs and inputs of each
entity and the process itself. A data-flow diagram has no control flow, there are no
decision rules and no loops. Specific operations based on the data can be represented by a
flowchart.

Level 0 : Context level diagram


Level 1 : DFD for create member
IMPLEMENTATION AND TESTING

6.1 MODULE DESCRIPTION

1. ADMIN

The admin side manages all the management like editing site contents, adding
products, brands, categories, etc. The admin/member has to login to use this system. It can only
add products and update their details in this system. Admin to keep the records of products in a
proper way.

6.1 IMPLEMENTATION
The major problems encountered was mainly time and due to this pandemic,
being able to get assistance was a little issue alongside getting materials. During the case study
development and execution, the person responsible is required to also have to focus on other
courses which include assignments, tests and examinations. Furthermore, several functionality
with the intention of might not have been met, however it can be implemented afterwards in later
versions. Managing time to be able to utilize all the accessible assets to guarantee the system has
been a success with all the necessary tasks that was applied. Additionally, at every phase there
were tests and debugging to ensure everything is running smoothly.

6.2 TESTING
In this testing approach, data to run tests were obtained from the determinations of the
system and afterward used to test every conceivable section or entries as input. Where
subsequently the real outcome was then contrasted with the normal outcome after each test trial
was carried out.On the off chance that the two outcomes relate at a point, the testing can be
supposed to be a success. Which means the developer that led the testing was more worried
about the genuine outcome delivered by the program than with the web build of the program.
Different kinds of testing where likewise completed such Unit Testing and Combination Testing
and so on

SOURCE CODE
SOURSE CODE
Register
<?php include('server.php') ?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>User Registration</title>

<!-- Font Icon -->

<link rel="stylesheet" href="fonts/material-icon/css/material-design-iconic-


font.min.css">
<!-- Main css -->

<link rel="stylesheet" href="css/style.css">

</head>

<body>

<div class="main">

<!-- Sign up form -->

<section class="signup">

<div class="container">

<div class="signup-content">

<div class="signup-form">

<h2 class="form-title">Sign up</h2>

<form method="POST" class="register-form" id="register-form" action="register.php">

<?php include('errors.php'); ?>

<div class="form-group">

<label for="name"><i class="zmdi zmdi-account material-icons-name"></i></label>

<input type="text" name="first_name" id="first_name" required="_required"


placeholder="First Name"/>

</div>

<div class="form-group">

<label for="name"><i class="zmdi zmdi-account material-icons-name"></i></label>


<input type="text" name="last_name" id="last_name" required="_required"
placeholder="Last Name"/>

</div>

<div class="form-group">

<label for="name"><i class="zmdi zmdi-account material-icons-name"></i></label>

<input type="text" name="username" id="username" required="_required"


placeholder="username"/>

</div>

<div class="form-group">

<label for="email"><i class="zmdi zmdi-email"></i></label>

<input type="email" name="email" id="email" required="_required" placeholder="Your


Email"/>

</div>

<div class="form-group">

<label for="phone"><i class="zmdi zmdi-phone"></i></label>

<input type="mobile" name="mobile" id="mobile"required="_required"


placeholder="Your Mobile Number"/>

</div>

<div class="form-group">

<label for="pass"><i class="zmdi zmdi-lock"></i></label>

<input type="password" name="password_1" id="password_1"required="_required"


placeholder="Password"/>

</div>

<div class="form-group">
<label for="re-pass"><i class="zmdi zmdi-lock-outline"></i></label>

<input type="password" name="password_2" id="password_2"required="_required"


placeholder="Repeat your password"/>

</div>

<div class="form-group form-button">

<input type="submit" name="reg_user" id="reg_user" class="form-submit"


value="Register"/>

</div>

</form>

</div>

<div class="signup-image">

<figure><img src="images/bag.jpg" alt="sing up image"></figure>

<a href="login.php" class="signup-image-link">I am already member</a>

</div>

</div>

</div>

</section>

</div>

<!-- JS -->

<script src="vendor/jquery/jquery.min.js"></script>

<script src="js/main.js"></script>

</body><!-- This templates was made by Colorlib (https://colorlib.com) -->


</html>

Login Page
<?php include('server.php') ?>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>User Registration</title>

<!-- Font Icon -->

<link rel="stylesheet" href="fonts/material-icon/css/material-design-iconic-font.min.css">

<!-- Main css -->

<link rel="stylesheet" href="css/style.css">

</head>

<body>

<div class="main">
<!-- Sign up form -->

<section class="signup">

<div class="container">

<div class="signup-content">

<div class="signup-form">

<h2 class="form-title">Sign up</h2>

<form method="POST" class="register-form" id="register-form"


action="register.php">

<?php include('errors.php'); ?>

<div class="form-group">

<label for="name"><i class="zmdi zmdi-account


material-icons-name"></i></label>

<input type="text" name="first_name" id="first_name"


required="_required" placeholder="First Name"/>

</div>

<div class="form-group">

<label for="name"><i class="zmdi zmdi-account


material-icons-name"></i></label>

<input type="text" name="last_name" id="last_name" required="_required"


placeholder="Last Name"/>

</div>

<div class="form-group">

<label for="name"><i class="zmdi zmdi-account


material-icons-name"></i></label>
<input type="text" name="username" id="username" required="_required"
placeholder="username"/>

</div>

<div class="form-group">

<label for="email"><i class="zmdi zmdi-email"></i></label>

<input type="email" name="email" id="email" required="_required"


placeholder="Your Email"/>

</div>

<div class="form-group">

<label for="phone"><i class="zmdi zmdi-phone"></i></label>

<input type="mobile" name="mobile" id="mobile"required="_required"


placeholder="Your Mobile Number"/>

</div>

<div class="form-group">

<label for="pass"><i class="zmdi zmdi-lock"></i></label>

<input type="password" name="password_1"


id="password_1"required="_required" placeholder="Password"/>

</div>

<div class="form-group">

<label for="re-pass"><i class="zmdi zmdi-lock-outline"></i></label>

<input type="password" name="password_2"


id="password_2"required="_required" placeholder="Repeat your password"/>

</div>

<div class="form-group form-button">


<input type="submit" name="reg_user" id="reg_user" class="form-submit"
value="Register"/>

</div>

</form>

</div>

<div class="signup-image">

<figure><img src="images/bag.jpg" alt="sing up image"></figure>

<a href="login.php" class="signup-image-link">I am already member</a>

</div>

</div>

</div>

</section>

</div>

<!-- JS -->

<script src="vendor/jquery/jquery.min.js"></script>

<script src="js/main.js"></script>

</body><!-- This templates was made by Colorlib (https://colorlib.com) -->

</html>

Add Item
<?php
session_start();

if (!isset($_SESSION['username'])) {

$_SESSION['msg'] = "You must log in first";

header('location: login.php');

if (isset($_GET['logout'])) {

session_destroy();

unset($_SESSION['username']);

header("location: login.php");

?>

<?php

// initializing variables

$item_name = "";

$item_price = "";

// connect to the database

$db = mysqli_connect('localhost', 'root', '', 'inventorymanagement');


if (mysqli_connect_errno())

echo "Failed to connect to MySQL: " . mysqli_connect_error();

// Add item

if (isset($_POST['add'])) {

// receive all input values from the form

echo "connect";

$item_name=mysqli_real_escape_string($db, $_POST['product_name']);

$item_price=mysqli_real_escape_string($db, $_POST['price']);

$quant=mysqli_real_escape_string($db, $_POST['quant']);

$query = "INSERT INTO product (product_name,price,quantity)

VALUES('$item_name','$item_price','$quant')";

if(mysqli_query($db, $query))

echo "<script>alert('Successfully stored');</script>";

else{

echo"<script>alert('Somthing wrong!!!');</script>";
}

header('location: table.php');

?>

<!-->

<!DOCTYPE html>

<html>

<head>

<title>Add Item</title>

<link rel="stylesheet" type="text/css" href="style.css">

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-


alpha.6/css/bootstrap.min.css"
integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKk
oFVhFQhNUwEyJ" crossorigin="anonymous">

</head>

<body>

<form method="POST" class="form-inline" action="additem.php">

<div class="form-group">

<label for="name">Product Name</label>

<input type="text" class="form-control" name="product_name">


</div>

<div class="form-group">

<label for="name">Price</label>

<input type="text" class="form-control" name="price">

</div>

<div>

<label for="name">Quantity</label>

<input type="number" name="quant" id="quant" min="1" max="">

</div>

<button type="submit" class="btn btn-default" name="add">Add item</button>

</form>

<div>

<a href="table.php">Home</a>

</div>

</body>

</html>

<!-->
SCREENSHOTS
REGISTER PAGE

LOGIN PAGE
DASHBOARD

ADD ITEM
EDIT
CONCLUSION

9. CONCLUSION
The “INVENTORY MANAGEMENT SYSTEM” also makes keeping records and
calculating sales easily without errors and mistakes. Also supplementary necessary functionalities will
be integrated. We have given the option add the details of Product, view the details, editing site
contents, adding products, brands, categories, etc. We can improve efficiency of the system, Less
human error, Strength and Strain of manual labour can be reduced, High Security, Data Consistency,
Easy to handle, Easy data updating, Easy record keeping.
REFERENCE
10. REFERENCE

 Bradley,(2013)ThoughtCAvailable:http://php.about.com/od/phpbasics/qt/
what_is_php_used_for.htm (Accessed 31 December 2020)
 According to chase Jacobs and Aquilano 2004 inventory is the stock of any item.
(2018, February 21).
 Averion, Gaela, and Libo (2009) Monitoring and Inventory for discovery.

 https://www.phptpoint.com/

You might also like