Final
Final
Chapter 1
INTRODUCTION
This project is on “Vehicle Management System” database using SQL and PHP function. It is a
User interactive program where the customer can see the driver details, vehicle details, cost of
the trip, whether or not requested vehicle is available, the cost of fuel, the brand of the vehicle,
validity of the license, etc.,
About the vehicle management system, details about the vehicles are available. In customer login
page there is registration for customer where he can login with an id and password. The customer
login consists of id and password after which he can book a vehicle. The booking process consists
of the name and department of the customer, the type of the vehicle required, the date of
requirement and the date of return, where the car will be picked up, the reason for booking, the
email ID and the phone number of the customer.
Chapter 2
LITERATURE SURVEY
2.1 Existing System
When a customer wants to hire a vehicle or wants to book a trip, it was to be done manually.
We have tried to analyze the existing systems which are currently used by various vehicle
service companies for hiring vehicles and booking a trip and information about drivers which
is time consuming and it requires man power.
Difficulty to reach
Overhead due to high amount of customers.
Time consuming.
Difficult to make changes in case of emergency changes.
Changes in destination or time of pick up and drop off
Chapter 3
SOFTWARE REQUIREMENTS SPECIFICATION
3.1 Requirements related to project
i) User Requirements
Since end users are the ones who are finally going to use the system, their requirements need
to be identified. This involves questioning the end users what their expectations were. The main
requirement of the end user is that the system should be easy to use and take less time. In
addition to these another important factor was to eliminate the need for database
conversion and migration that had to be carried out presently.
Chapter 4
DESIGN & ANALYSIS
4.1 Project Description
System design is essential to develop a model of system before writing any software that is
used to control the system or to interact with it during the design process we try to develop
system at different levels of abstraction. he project is developed using the below objects:-
Planned approach toward working: The working in the organization will be well planned and
organized. The data will be stored efficiency with optimal disk space consumption in data
stores which will help in retrieval of information as well as its storage under resource
constraints.
Accuracy: The level of accuracy in the proposed system will be higher. All operations would
conform to integrity constraints and correctness and it will be ensured that whatever
information is received at or sent from the center is accurate.
Reliability: The reliability of the proposed system will be high due to the above mentioned
reasons. This comes from the fact that only the data which conforms accuracy clause would
be allowed to commit back to the disk. Other properties like transaction management and
rollback during system or power failure etc. get automatically taken care of by the SQL
systems. Properties of atomicity, consistency, isolation and data security are intrinsically
maintained.
Immediate retrieval of information: The main objective of the proposed system is to provide a
quick and efficient platform for retrieval of information. Among the queries allowed for use
by the user, the query results are made available immediately, without time lapse, irrespective
query.
Systems Development Life Cycle (SDLC) adheres to important phases that are essential for
developers, such as planning, analysis, design, and implementation. The oldest model, that
was originally regarded as "the Systems Development Life Cycle" is the waterfall model: a
sequence of stages in which the output of each stage becomes the input for the next. These
stages generally follow the same basic steps but many different waterfall methodologies give
the steps different names and the number of steps seems to vary between 4 and 7.
i) Initiation Phase
The Initiation Phase begins when a business sponsor identifies a need or an opportunity. The
purpose of the Initiation Phase is to:
· Identify and validate an opportunity to improve business accomplishments of the organization
or a deficiency related to a business need.
· Identify significant assumptions and constraints on solutions to that need.
· Assure executive business and executive technical sponsorship.
i) Behavioural feasibility
People are inherently resistant to change and computers have been known to facilitate
change. There is always some reluctance among the users against the introduction of new
system but they were told that this system would eliminate the unnecessary overhead of
database migration and conversion. The objective this feasibility phase is to take the
operational staff into confidence
iv)Technical feasibility
Technical feasibility centres on the existing computer system.(Hardware/software) and to
what extent it can support the proposed addition also the organization already has sufficient
high-end machines to serve the processing requirements of the proposed system. So there is no
need to purchase new software as the organization has necessary software i.e. tomcat 5.0,
j2ee1.4, Microsoft SQL Server or hardware to support the proposed system
Maintenance of Accuracy and Reliability issues: With redundancy comes consistency issues
as the update of information in a single record should be echoed in all records containing the
same information. Also atomicity issues i.e., completion of a transaction in totality or nothing
at all; has to be maintained. This is difficult in a multi-file system.
Lack of prompt update: Updates associated with a record in a file is to be reflected in all
records wherein the particular record is present. Errors in commit operation to some
particular files cause the grave issue of data inconsistency.
Error prone manual calculation: Manual calculations are error prone and relatively
immensely time consuming, in spite of which they may result in generation of incorrect
information. Verification is another overhead, which can be saved through efficient design
and implementation.
A huge advantage that PHP offers is its community. Since PHP is an open source project, the
PHP community is willing to share. A PHP scripting block always starts with <?php and ends
with ?>. A PHP scripting block can be placed anywhere in the document. On servers with
shorthand support enabled you can start a scripting block with <? and end with ?>.
For maximum compatibility, we recommend that you use the standard form (<?php) rather than
the shorthand form.
ii) MY SQL
MySQL is an open source relational database management system (RDBMS). Its name is a
combination of "My", the name of co-founder Michael Widenius's daughter and "S0QL", the
abbreviation for Structured Query Language. The MySQL development project has made
its source code available under the terms of the GNU General Public License, as well as
under a variety of proprietary agreements. MySQL was owned and sponsored by a single for
profit firm, the Swedish company MySQL AB, now owned by Oracle Corporation.
MySQL was created by a Swedish company, MySQL AB, founded by David Axmark, Allan
Larsson and Michae “Monty” Widenius. Original development of MySQL by Widenius and
Axmark began in 1994. The first version of MySQL appeared on 23 May 1995. It was
initially created for personal usage from MySQL based on the low-level language ISAM,
which the creators considered too slow and inflexible. They created a new SQL interface,
while keeping the same API as MySQL.
MySQL is written in C and C++. MySQL dump is a logical backup tool included with both
community and enterprise editions of MySQL. It supports backing up from all storage
engines. MySQL Enterprise Backup is a hot backup utility included as part of the MySQL
Enterprise subscription from Oracle.
MySQL Fabric is an integrated system for managing a collection of MySQL servers, and
a framework on top of which high availability and database shading is built. MySQL Fabric
is open-source, and supports procedure execution in the presence of failure, providing an
execution model usually called resilient execution.
phpMyAdmin is a free and open source tool written in PHP intended to handle the
administration of MySQL with the use of a web browser. It can perform various tasks such as
creating, modifying or deleting databases, tables, fields or rows; executing SQL statements;
or managing users and permissions. The software, which is available in 78 languages, is
maintained by The phpMyAdmin Project.
4.7 ER Diagram
Chapter 5
IMPLEMENTATION
This phase is initiated after the system has been tested and accepted by the user. Implementation
includes user notification, user training, installation of hardware, installation of software onto
production computers, and integration of the system into daily work processes.
We implement E-Notice Board program which can run on any computer system either by
local area network or wired or wireless network [1]. We develop android app beneficial to
user for accessing the all college related updates. There are following steps of E-Notice
Board:
Step 1: Admin can login by entering his user_id and password.
Step 2: Admin can manage the information about booking and hiring.
Step 3: User registration such as driver, it require driver name, address, mobile no, email_id,
username and password. For customer registration username, password, mobile no, name,
gender, email_id, etc are required.
BILL
CREATE TABLE `bill` (
`bill_id` int(11) NOT NULL,
`id` varchar(255) NOT NULL,
`username` varchar(100) NOT NULL,
`salary` int(255) NOT NULL,
`equipment` int(255) NOT NULL,
`oil` int(255) NOT NULL,
`tcost` int(255) NOT NULL)
BOOKING
DRIVER
CREATE TABLE `driver` (
`driverid` int(11) NOT NULL,
`drname` varchar(255) NOT NULL,
`drjoin` varchar(255) NOT NULL,
`drmobile` varchar(20) NOT NULL,
`drnid` varchar(30) NOT NULL,
`drlicense` varchar(30) NOT NULL,
`drlicensevalid` varchar(100) NOT NULL,
`draddress` varchar(255) NOT NULL,
TRIPCOST
CREATE TABLE `tripcost` (
`id` int(11) NOT NULL,
`booking_id` varchar(50) NOT NULL,
`username` varchar(100) NOT NULL,
`total_km` varchar(11) NOT NULL,
`oil_cost` varchar(11) NOT NULL,
`extra_cost` varchar(11) NOT NULL,
`total_cost` varchar(11) NOT NULL,
`paid` int(11) NOT NULL)
USER
CREATE TABLE `user` (
`user_id` int(11) NOT NULL,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`admin` int(11) NOT NULL)
VEHICLE
CREATE TABLE `vehicle` (
`veh_id` int(11) NOT NULL,
`veh_reg` varchar(100) NOT NULL,
`veh_type` varchar(20) NOT NULL,
`chesisno` varchar(100) NOT NULL,
`brand` varchar(100) NOT NULL,
`veh_color` varchar(100) NOT NULL,
INFORMATION SCIENCE & ENGINEERING,SJCIT Page 14
Vehicle Management System
`veh_regdate` varchar(100) NOT NULL,
`veh_description` varchar(255) NOT NULL,
`veh_photo` varchar(255) NOT NULL,
`veh_available` int(11) NOT NULL)
Inserting values
ADMIN
INSERT INTO `admin` (`admin_id`, `username`, `password`) VALUES
(1, 'mihaf24', '1234');
BILL
INSERT INTO `bill` (`bill_id`, `id`, `username`, `salary`, `equipment`, `oil`, `tcost`) VALUES
(8, '25', '', 1000, 1000001, 1010, 101010101),
(9, '25', '', 1000, 100, 300, 1400),
(10, '25', '', 10000, 500, 4000, 10000);
BOOKING
INSERT INTO `booking` (`booking_id`, `name`, `username`, `department`, `type`, `req_date`,
`req_time`, `ret_date`, `ret_time`, `destination`, `pickup_point`, `resons`, `email`, `mobile`,
`confirmation`, `veh_reg`, `driverid`, `finished`, `paid`) VALUES
(47, 'ibtihaj ahmed', 'fahad', 'CSE', 'car', '05/01/2018', '7 : 19 AM', '05/02/2018', '7 : 19 AM',
'Katakhali', 'Ruet Gate', 'Education', '[email protected]', 19398134, 1, 'ga-259723', 20, 1, 1)
DRIVER
INSERT INTO `driver` (`driverid`, `drname`, `drjoin`, `drmobile`, `drnid`, `drlicense`,
`drlicensevalid`, `draddress`, `drphoto`, `dr_available`) VALUES
(20, 'fahim', '03/04/2018', '01717172398712', '91238912093097812', '1093q098091839',
'03/26/2018', ' creasent road, dhaka, bangladesh.', 'nsf.jpg', 1)
TRIPCOST
INSERT INTO `tripcost` (`id`, `booking_id`, `username`, `total_km`, `oil_cost`, `extra_cost`,
`total_cost`, `paid`) VALUES
(13, '47', 'fahad', '10', '33', '8', '250', 1)
USER
INSERT INTO `user` (`user_id`, `first_name`, `last_name`, `email`, `username`, `password`,
`admin`) VALUES
(10, 'ibtihaj', 'ahmed', '[email protected]', 'fahad', 'asdasd', 0)
VEHICLE
INSERT INTO `vehicle` (`veh_id`, `veh_reg`, `veh_type`, `chesisno`, `brand`, `veh_color`,
`veh_regdate`, `veh_description`, `veh_photo`, `veh_available`) VALUES
(25, 'ga-259723', 'car', '101-12303.20201', 'corolla', 'Black', '25/03.17', 'hello this is a black car.',
'1.jpg', 1)
i) Connecting To Database
<?php
session_start();
$connection=mysqli_connect("localhost","root","","vehicle management");
$msg="";
if(isset($_POST['submit'])){
$username=mysqli_real_escape_string($connection,strtolower($_POST['username']));
$password=mysqli_real_escape_string($connection,$_POST['password']);
$login_res=mysqli_query($connection,$login_query);
if(mysqli_num_rows($login_res)>0){
$_SESSION['username']=$username;
header('Location:index.php');
}
else{
$msg= '<div class="alert alert-danger alert-dismissable" style="margin-top:30px";>
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
</div>';
}
}
?>
ii) Sign up and Login Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sign Up</title>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="animate.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php include 'navbar.php'; ?>
<br>
<div class="container">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<?php echo $msg; ?>
<div class="page-header">
<h1 style="text-align: center;">Login</h1>
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-
user"></i></span>
<input id="username" type="text" class="form-control" name="username"
placeholder="Username">
</div>
<br>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-
lock"></i></span>
<input id="password" type="password" class="form-control" name="password"
placeholder="Password">
</div>
<br>
<div class="input-group">
<button type="submit" name="submit" class="btn btn-success">Log in</button>
</div>
</form>
<br>
<div class="input-group">
<a href="login_admin.php">Admin Login</a>
</div>
</div>
<div class="col-md-3"></div>
</div>
</div>
</body>
</html>
INFORMATION SCIENCE & ENGINEERING,SJCIT Page 18
Vehicle Management System
Chapter 6
SOFTWARE TESTING
6.1 Levels Of Testing
Testing is the process of executing then programs with the intention of finding out error. During
the process, the project is executed with set of test and the output of the website is evaluated to
determine if the project is performing as expected. Testing includes after the completion of the
coding phase. The project was tested from the very beginning and also at each step by entering
different type of data.
Testing is vital to the success of the system. Testing makes a logical assumption that if all the
parts of the system are correct, the goal will be successfully achieved. A small system error can
conceivably explode into a much larger problem. Effective testing early in the process translates
directly into long-term cost savings from a reduced number of error.
The aim of the testing process is to identify all the defects in the website. It is not practical to
test the website with respect to each value that the input request data may assume. Testing
provides a practical way of reducing defects in the website and increasing the user’s confidence
in a developed system. Testing consists of subjecting the website to a set of test inputs and
observing if the program behaves as expected.
A test case is the triplet [I, S, O] where I am data input to the system. S is the state of the
state of the system at which the data is input, O is the expected output of the system A test suite
is the set of all test cases with which a given software product is to be tested. The following
things are associated with testing:
i) Functional Testing
Here the system is a black box whose behavior is determined by studying its inputs and related
outputs. The key problem is to select the inputs that have a huge probability of being members
of a set in many case.
6.2 Snapshots
6.2.1 Homepage
6.2.3 Booking
BUS SCHEDULE : The bus schedule throughout the year can be checked.
Chapter 7
CONCLUSION
This mini project on “Vehicle Management System“ using the back-end and front-end is a
database that provides the customer and employee to save the details about themselves, vehicle
hiring, billing details , services, etc,.
It provides Admin and employee login with many more functions like adding new employee or
customers, updating the billing details, vehicle hiring process, component details to the database.
The employee can see the details in this system. Mainly, this database was created to store the
details to update as per need.
Through this mini project we were able to create a platform for the customers to be able to hire
a vehicle or book a trip with ease . In case of any updation of the details regarding the trip,
booking or personal customer or driver details , it is easy to do so.
REFERENCES
[1] Database system models , language, design and application programing, Ramez Elmasri
B,Navathe, 7th edition ,2017,Pearson.
[2] Database management systems, Ramakrishnan and Gehrke, 3rd edition ,2014,McGraw
Hill.
Websites:
1. https://www.scribd.com/doc/22536772/Vehicle-Management-System
2. http://www.123seminarsonly.com/CS/Vehicle-Management-System.html