1.1 Statement of The Project: Information Science & Engineering, Sjcit
1.1 Statement of The Project: Information Science & Engineering, Sjcit
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
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.
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
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.
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
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.
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)
INFORMATION SCIENCE & ENGINEERING,SJCIT Page 12
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,
INFORMATION SCIENCE & ENGINEERING,SJCIT Page 13
`draddress` varchar(255) NOT NULL,
`drphoto` varchar(30) NOT NULL,
`dr_available` int(11) 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,
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', 'fahad@gmail.com', 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)
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{
</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">
<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>
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.
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.
[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