Professional Documents
Culture Documents
PROJECT REPORT ON
ONLINE PARKING BOOKING SYSTEM
SUBMITTED BY
BY BATCH
HEAD OF DEPARTMENT
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
K H KABBUR INSTITUTE OF ENGINEERING
VIDYAGIRI,DHARWAD-580004.
CANDIDATE DECLARATION
DATE:
PLACE:
Name:
Reg No:
SIGNATURE SIGNATURE
Vidyagiri,Dharwad-580004.. Vidyagiri,Dharwad-580004.
VIDYAGIRI, DHARWAD-580004.
CERTIFICATE
Certified that this report entitled “ONLINE PARKING BOOKING SYSTEM”, which
is being submitted by Sangeeta Shivannavar Reg.No202CS17047, award of Diploma in
Computer Science and Engineering during the year 2019-20 is record of student’s own work
carried out under my/our guidance. It is certified that all corrections/suggestions indicated for
Internal Assessment have been incorporated in the Report and one copy of it being deposited in
the polytechnic library
The project report has been approved as it satisfies the academic requirements in
respect of Project work prescribed for the said diploma.
1.
2.
ACKNOWLEDGEMENT
The satisfaction that accompanies that the successful completion of any task would be
incomplete without the mention of people whose ceaseless cooperation made it possible, whose
constant guidance and encouragement crown all efforts with success.
Finally I wish to express thanks to my parents, friends and regard to one and all
who have helped directly or indirectly in developing project.
Yogita Warad
Seema Magadum
Sangeeta shivanavar
Vaishnavi Mahendrakar
Sushma Ganiger
ABSTRACT
In metropolitan areas, most vehicle drivers have the daily concern of finding a
vacant parking space especially during the rush hours.
So, many parking management systems have been deployed in order to reduce such
traffic congestion and improve the convenience for vehicle drivers.
Current system cannot guide the drivers to their desired parking destinations.
INDEX
SL.NO CONTENTS PAGE NO
1 CHAPTER-1 INTRODUCTION 1
2 CHAPTER-2 OBJECTIVE 2-3
3 CHAPTER-3 TOOLS/ENVIRONMENT USED 4-16
3.1 Hardware requirement
3.2 Software requirement
3.3Introduction to PHP
3.4SQL server
3.5Android
3.6Mysql
4 CHAPTER-4 SYSTEM ANALYSIS 17-19
4.1 Introduction
4.2System interface
4.3Analysis
4.4Methodology
5 CHAPTER-5 SYSTEM DESIGN 20-29
5.1 Data flow diagram
5.2 Entity relation diagram
6 CHAPTER-6 PROGRAM CODE 30-52
7 CHAPTER-7 TESTING 53-57
7.1 Objective of testing
7.2 Principles of testing
7.3 Software testing strategies
7.4 Test approach
8 CHAPTER-8 INPUT AND OUTPUT SCREENS 58-68
9 CHAPTER-9 LIMITATIONS OF THE PROJECTS 69
10 CHAPTER-10 70
FUTURE SCOPE OF THE PROJECTS
11 CHAPTER-11 CONCLUSION 71
12 CHAPTER-12 72
REFERENCES AND BIBLIOGRAPHY
INTRODUCTION
With the increase in the life style, cars/vehicles have become a necessity. With the
increase in vehicles, increase in population the available parking spaces provided by the
corporation or the malls is not sufficient.
This leads to waste of time in searching for parking space when needed, fights
may arise between vehicle owners for space. In disciplinary parking may result in damage to the
cars and fine charged by traffic police.
Thus, there is a need to provide sufficient parking space coupled with plenty of
slots to help the user park his cars safely. Basically, parking system is one of most adopted
fastest growing solution of smart city.
To solve the problem of parking space, we are proposing a software solution
/application. This application can be used as Web Based and Android Bassed application.
OBJECTIVE
Existing system
The present situation of the parking has many problems. There is less parking
layout for the vehicles in India.The cities in India are highly congested and on top of that the
parked vehicles claim a lot of space that could otherwise be used in better way.
• In the Existing situations the parking problems have been one of the most discussed topics
by the general public.
• In many places ,the parking problems are becoming increasingly important.
• The imbalance between parking supply and parking demand has been considered as the
main reasons.
• It is waste of Time in searching here and there for parking layout.
• Because of this problem the vehicles are parked in messy way and creates traffic jam.
Advantages:
• Manual intervention is avoid.
• Accuracy of data.
• Better control on the functioning of the parking lot.
• Saves time for user.
• Data is stored and is available at any time in a proper format.
TOOLS/ENVIRONMENT USED
• PHP is a server side scripting language that is embedded in HTML. It is used to manage
dynamic content, databases, session tracking, even build entire e-commerce sites.
• It is integrated with a number of popular databases, including MySQL, PostgreSQL,
Oracle, Sybase, Informix, and Microsoft SQL Server.
• PHP is pleasingly zippy in its execution, especially when compiled as an Apache module
on the Unix side. The MySQL server, once started, executes even very complex queries
with huge result sets in record-setting time.
• PHP supports a large number of major protocols such as POP3, IMAP, and LDAP. PHP4
added support for Java and distributed object architectures (COM and CORBA), making
n-tier development a possibility for the first time.
• PHP is forgiving: PHP language tries to be as forgiving as possible.
• PHP Syntax is C-Like.
• Simplicity
• Efficiency
• Security
• Flexibility
• Familiarity
❖ Familiarity:
Programmers from many backgrounds will find themselves already accustomed to the
PHP language. Many of the language’s constructsare borrowed from Cand Perl,and in
many cases PHP code is almost in distinguish able from that found in the typical Cor
Pascal program. This minimizes the learning curve considerably.
❖ Simplicity:
A PHP script can consist of 10,000lines or one line:what everyoune edtogetthe job
done.There is noneed to include libraries,special compilation directives,or any-thing of
the sort.The PHP engine simply begins executing the code after the first escapesequence
(<? ) and continues until it passes the closing escape sequence(?>).If the code is
syntactically correct,it will be executed exactly as it is displayed.
❖ Efficiency:
Efficiency is an extremely important consideration for working in a multiuser
environment such as the WWW. PHP4.0 introduced resource allocation mechanisms and
more pronounced support for object-oriented programming ,in addition to session
management features.Reference counting has also been introduced in the latest version,
eliminating unnecessary memory allocation.
❖ Security:
PHP provides developersand administrators with a flexible and efficient set of security
safeguards.Thesesafeguards canbe divided into twoframes of reference:system level and
application level.
• PHP can handle forms, i.e. gather data from files, save data to a file, thru email
you can send data, return data to the user.
• You add, delete, modify elements within your database thru PHP.
• Access cookies variables and set cookies.
• Using PHP, you can restrict users to access some pages of your website.
CSS:
Css is used to define styles for your webpages , including the design ,layout and variations in
display for different devices and screen sizes.
CSS describe show HTML elements are to be displayed on screen ,paper,or in other media
CSS saves a lot of work.It can control the layout of multiple webpages all at once
External style sheets are stored in CSS files
HTML:
The differences between these versions are beyond the scope of these notes. All the
"experts" can't even seem to agree when you can or should use XHTML. Just know that if you use
either, any web browser will be able to display your pages for some time to come. I will use both,
but try to emphasize XHTML, because it makes your pages ready for stuff we haven't thought up
yet.
Features of HTML:
JAVA
It is a product of Sun Microsystems. Java is C++ for the rest.It uses C++
style syntax but has been designed to be much, much easier to use. The core language
is quite small and is extended by myriad packages of useful routines. In fact most of the
time programming in Java involves finding the right routine in the right package to do
the job.
JavaScript:
JavaScript has no relation to Javaaside from having a C-like syntax. Netscape developed
JavaScript, and SunMicrosystems developed Java. The rest of this section assumes a
background in programming. You may skip to the next section, if you like.
Benefits of JAVASCRIPT:
JavaScript has a number of benefits to anyone who wants to make their Web
site dynamic.
MySQL is a fast, easy-to-use RDBMS being used for many small and bigbusinesses.
MySQL is developed,marketed, and supported by MySQLAB, which is a Swedish company.
MySQL is becoming so popular because of many good reasons:
MySQL is released under an open-source license.So you have nothing to pay to use it.
MySQL is a very powerful program in its own right.It handles a large subset of the
functionality of the most expensive and powerful database packages.
MySQL works on many operating systems and with many languages including PHP,
PERL, C, C++, JAVA, etc.
MySQL works very quickly and works well even with large data sets.
MySQL is very friendly to PHP,the most appreciated language for web development.
MySQL supports large databases, upto 50million rows or more in a table. The default
file size limit for a table is 4GB, but you can increase this (if your operating
system can handle it) to a theoretical limit of 8million terabytes (TB).
The Android SDK and tools are freely available. Developers can download the
Android SDK from the Android Web site after agreeing to the terms of the Android
Software Developers have several choices when it comes to integrated
development environments.
MySQL is written in C and C++. Its SQL parser is written in yacc, but it
uses a home-brewed lexical analyzer.[16] MySQL works on many system
platforms, including AIX, BSDi, FreeBSD, HP- UX, eComStation, i5/OS, IRIX,
Linux, macOS, Microsoft
The MySQL server software itself and the client libraries use dual- licensing
distribution. They are offered under GPL version 2, or a proprietary license
Structured Query Language (SQL) is the language used to manipulate relational
databases. SQL is tied very closely with the relational model.
A schema is a collection of database objects that can include: tables, views, indexes
and sequences
SYSTEM ANALYSIS
4.1 INTRODUCTION
In this chapter, we will discuss analyse about the developing process of online parking
booking system including software requirement specification (SRS) and comparison between
existing system and proposed system. The functional and non- functional requirements are Included
in SRS part to provide complete description and overview of system requirement before the
developing process is carried out. Besides that, existing vs proposed system provides a view of how
the proposed system will be more efficient the existing one.
PURPOSE:
A software requirements specification (SRS) is a comprehensive description of the
intended purpose and environment for software under development. ... An SRS minimizes the
time and effort required by developers to achieve desired goals and also minimizes the
development cost.
The web application module is being and it is hosted on the web server
module. Similarly the module application module also hosted on to the web
authenticated server module. On receiving the input from the mobile application
module the web server module processes and thus the output is displayed in the
web application module.
4.3 ANALYSIS :
In this chapter, we will discuss ana analyse about the developing process
of online parking booking system including software requirement specification (SRS) and
comparison between existing system and proposed system. The functional and non- functional
requirements are
Included in SRS part to provide complete description and
overview of system requirement before the developing process is carried out. Besides that, existing
vs proposed system provides a view of how the proposed system will be more efficient the existing
one.
SYSTEM DESIGN
For each data flow, at least one of the endpoints (source and / or destination) must
exist in a process. The refined representation of a process can be done in another data-flow
diagram, which subdivides this process into sub-processes.
The data-flow diagram is part of the structured-analysis modelling tools. When using
UML, the activity diagram typically takes over the role of the data-flow diagram. A special form
of data-flow plan is a site-oriented data-flow plan.
System design is the process of defining the components, modules, interfaces, and
data for a system to satisfy specified requirements. System development is the process of
creating or altering systems, along with the processes, practices, models, and methodologies used
to develop them.
a. Unified Modelling Language (UML): To describe software both structurally and behaviourally
with graphical notation.
c. Business Process Modelling Notation (BPMN): Used for Process Modelling language.
Design methods:
1) Architectural design: To describes the views, models, behaviour, and structure of the system.
2) Logical design: To represent the data flow, inputs and outputs of the system. Example: ER
Diagrams (Entity Relationship Diagrams).
Data flow diagrams are used to graphically represent the flow of data in a
business information system. DFD describes the processes that are involved in a system to
transfer data from the input to the file storage and reports generation.
Data Flow:
Actor/source/sink
The files which are outside the system and used process or
There are three types of relationships that can exist between two entities.
An entity-relationship (ER) diagram is created based on these three types, which are listed
below:
1:1 In a traditional American marriage, a man can be married to only one woman; a
relationship woman can be married to only one man.
1:N A child has exactly one biological father; a father can have many biological
relationship children.
M:N
A student can enroll in many classes; a class can have many enrolled students.
relationship
The database management system (DBMS) is the software that interacts with end
users, applications, and the database itself to capture and analyze the data. The
DBMS software additionally encompasses the core facilities provided to administer
the database. The sum total of the database, the DBMS and the associated
applications can be referred to as a "database system". Often the term "database" is
also used to loosely refer to any of the DBMS, the database system or an
application associated with the database.
Owner:
Customer:
Booking
PROGRAM CODE
ADMIN
Register form
<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include '/header_home.php';
?>
</head>
<body background="images/car.jpg"/>
<form method="POST" action="reg.php">
<center>
<center> <img src="images/register.jpg" width="400px" height="200px"/>
</center>
<br>
<br>
<tr>
<td><font size="5px"
color="blue"><b>Name</b></td></font><br><br>
<td><input type="text" name="txtname" required="" size="40px"></td>
<br>
<br>
</tr>
<br>
<tr>
<td><font size="5px" color="red">Mobile</td></font><br><br>
<td><input type="text" name="txtmobile" required="" size="40px"></td>
<br>
<br>
</tr>
<br>
<tr>
<td><font size="5px" color="green">Email</td></font><br><br>
<td><input type="text" name="txtemail" required="" size="40px"></td>
Register.php
<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include '/header_log.php';
?>
</head>
Login form
<html>
<head>
KHKABBUR INSTITUTE OF ENGINEERING 32
<meta charset="UTF-8">
<title></title>
<?php
include '/header_home.php';
?></head>
<body background="images/log_background.jpg"/>
<center>
<b><u><h1><font color="blue" size="100px">Owner Login</h1></u></b></font>
<center> <img src="images/login.jpg." width="300px" height="210px"/>
</center>
<form method="POST" action="login.php"/>
<center>
<tr>
<td><h2><font color="blue" size="5px">Email</h2></td></font>
<td><input type="text" name="txtemail" required="" size="40"></td>
</tr>
<tr>
<td><h2><font color="blue" size="5px">Password</h2></td></font>
<td><input type="password" name="txtpassword" required="" size="40"></td>
</tr>
<br>
<br>
<tr> <td colspan="3">
<div id="parent-div" style="width: 100px; height: 100px; ">
<input type="submit" name="btn" value="LOGIN" style="width: 120%; height: 40%; font-size:
20px; display: bold"></td>
</div>
</tr>
<br>
<p><a href="regform.php"><h1><font color="black" size="10px">Register Here</font></h1></a></p>
</form>
</center>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include '/header_log.php';
?>
</head>
<body>
<h1> <u>HOME</u> </h1>
<a href="addlocationform.php"><h2><font color="white"> Add Location Form</h2></a><br/>
<a href="viewlocation.php"><h2><font color="white">View Location</h2></a><br/>
<a href="viewbookings.php"><h2><font color="white">View Bookings</h2></a><br/>
<a href="selectlocation_edit.php"><h2><font color="white">Update Location</h2></a><br/><a
href="changepasswordform.php"><h2><font color="white">Change Password Form</h2></a><br/>
</body>
<?php
include '/body_log.php';
?><br>
<?php
include '/footer_log.php';
?>
</html>
Addlocationform
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<?php
include '/header_log.php';
?>
<body>
<?php
include '/body_log.php';
KHKABBUR INSTITUTE OF ENGINEERING 35
?>
<h1>Location Form</h1>
<form method="POST" action="addlocation.php">
<table colspan="3" textalign="right">
<tr><td>Location</td>
<td><font textalign="left"><input type="text" name="txtlocation" requried=""></font></td>
</tr><tr><td>Address</td>
<td><input type="text" name="txtaddress" requried=""/></td></tr>
<tr><td>City</td>
<td><input type="text" name="txtcity" requried=""/></td></tr>
<tr><td>Sheltered</td>
<td>yes<input type="radio" name="txtsheltered" value="yes"> no<input type="radio" name="txtsheltered"
value="no"></td></tr><tr>
<td>Guarded</td>
<td>yes<input type="radio" name="txtguarded" value="yes"/>
no<input type="radio" name="txtguarded" value="no"/></td>
</tr>
<tr><td>Total slots</td>
<td><input type="text" name="txttotalslots" requried=""/></td>
</tr>
<tr>
<td>Booked slots</td>
<td><input type="text" name="txtbookedslots" required="readonly"></td>
</tr>
<tr>
<td>Available slots</td>
<td><input type="number" name="txtavailableslots" required="readonly"/></td>
</tr>
<tr><td>Hourrate</td>
<td><input type="number" name="txthourrate" requried=""/></td>
</tr>
<tr> <td colspan="3">
<div id="parent-div" style="width: 100px; height: 100px; ">
<input type="submit" name="btn" value="ADD LOCATION" style="width: 190%; height: 40%; font-size: 20px;
display: bold"></td>
</div>
</tr>
</table>
</form>
<a href="home.php"><h1><font color="white">BACK</h1></a>
KHKABBUR INSTITUTE OF ENGINEERING 36
</body>
<?php
include '/footer_log.php';
?>
</html>
Addlocation.php
<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include '/header_log.php';
?>
</head>
<font textalign="center">
</font>
<body>
<?php session_start();
$location = $_POST["txtlocation"];
$address = $_POST["txtaddress"];
$city = $_POST["txtcity"];
$sheltered = $_POST["txtsheltered"];
$guarded = $_POST["txtguarded"];
$totalslots = $_POST["txttotalslots"];
$bookedslots = $_POST["txtbookedslots"];
$availableslots = $_POST["txtavailableslots"];
$hourrate = $_POST["txthourrate"];
$Owner_id=$_SESSION['session_Owner_id'];
//insert into location table
$conn = new PDO("mysql:host=localhost;dbname=parkingdb", "root", null);
$stmt = $conn->prepare("insert into Location (Owner_id,Location,Address,city,Sheltered,"
. "Guarded,totalSlots,Bookedslots,Availableslots,hourRate)"
. " values (?,?,?,?,?,?,?,?,?,?)");
$stmt->bindparam(1,$Owner_id);
$stmt->bindparam(2,$location);
$stmt->bindparam(3,$address);
KHKABBUR INSTITUTE OF ENGINEERING 37
$stmt->bindparam(4,$city);
$stmt->bindparam(5,$sheltered);
$stmt->bindparam(6,$guarded);
$stmt->bindparam(7,$totalslots);
$stmt->bindparam(8,$bookedslots);
$stmt->bindparam(9,$availableslots);
$stmt->bindparam(10,$hourrate);
$stmt->execute();
$c = $stmt->rowCount(); if ($c>0)
{
echo "Location Added";
}else{
echo "Location not added";
}
?>
<br/>
<a href="home.php"><font color="white" >Home</a>
</body>
<?php
include '/footer_log.php';
?>
</html>
Selectlocation_edit.php
<?php
include './header_log.php';
?>
<?php
include './body_log.php';
?>
<h1>Location</h1>
<?php
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("select * from location");
$stmt->execute();
$c=$stmt->rowCount();
$Location_id=array();
$Location=array();
KHKABBUR INSTITUTE OF ENGINEERING 38
$Sheltered=array();
$Guarded=array();
$totalSlots=array();
$Bookedslots=array();
$Availableslots=array();
$hourRate=array(); if($c > 0)
{
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
array_push($Location_id,$row["Location_id"]); array_push($Location,$row["Location"]);
array_push($Sheltered,$row["Sheltered"]); array_push($Guarded,$row["Guarded"]);
array_push($totalSlots,$row["totalSlots"]); array_push($Bookedslots,$row["Bookedslots"]);
array_push($Availableslots,$row["Availableslots"]); array_push($hourRate,$row["hourRate"]);
}
$conn=NULL;
$arrlen=count($Location_id);
echo "<div>";
echo "location list";
echo "<table border=1>"; echo "<thead>";
echo "<th style=width:100px>select location to edit</th>"; echo "<th style=width:100px>Location</th>";
echo "<th style=width:100px>Sheltered</th>"; echo "<th style=width:100px>Guarded</th>"; echo "<th
style=width:100px>totalSlots</th>"; echo "<th style=width:100px>Bookedslots</th>";
echo "<th style=width:100px>Availableslots</th>";
echo "<th style=width:100px>hourRate</th>"; echo "</thead>";
for($i=0;$i<$arrlen;$i++)
{
echo "<tr>";
echo "<td><a href=updatelocationform.php?Location_id=".
$Location_id[$i].">"."".
$Location_id[$i]."</td>";
echo "<td>".$Location[$i]."</td>"; echo "<td>".$Sheltered[$i]."</td>"; echo "<td>".$Guarded[$i]."</td>"; echo
"<td>".$totalSlots[$i]."</td>"; echo "<td>".$Bookedslots[$i]."</td>";
echo "<td>".$Availableslots[$i]."</td>"; echo "<td>".$hourRate[$i]."</td>"; echo "</tr>";
}
echo "</table>"; echo "</div>";
}
else
{
echo "No Location found tO Display";
}
KHKABBUR INSTITUTE OF ENGINEERING 39
?>
</body>
<?php
include './footer_log.php';
?>
</html>
Selectlocationform
<!DOCTYPE html>
<?php
include './header_log.php';
?>
<?php
include './body_log.php';
?>
<?php
$Owner_id=array();
$Location=array();
$msg="";
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("select Owner_id,Location from location");
$stmt->execute();
$c=$stmt->rowCount(); if($c > 0){
while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ array_push($Owner_id,$row["Owner_id"]);
array_push($Location,$row["Location"]);
}
}else{
$msg="no id found to load ";
}
$conn=null;
?>
<html>
<head>
<meta charset="UTF-8">
<title> </title>
</head>
<body>
Updatelocationform
<?php
include './header_log.php';
?>
<?php
include './body_log.php';
?>
Updatelocation.php
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
</head>
<body>
<form method="POST" action="updatelocation.php"/>
<table border="2">
<h1>location details</h1>
Updatelocation.php
<?php
include './header_log.php';
?>
<?php
$Sheltered=$_POST["txtsheltered"];
$Guarded=$_POST["txtguarded"];
$Location_id=$_POST["Location_id"];
$hourRate=$_POST["txthourRate"];
$txttotalSlots=$_POST["txttotalSlots"];
$txtBookedslots=$_POST["txtBookedslots"];
$txtAvailableslots=$txttotalSlots- $txtBookedslots;
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("update Location set Sheltered=?, Guarded=?
," "hourRate=?,totalslots=?,Availableslots=?,Bookedslots=? where Location_id=?");
$stmt->bindParam(1, $Sheltered);
$stmt->bindParam(2, $Guarded);
$stmt->bindParam(3, $hourRate);
$stmt->bindParam(4, $txttotalSlots);
$stmt->bindParam(5, $txtAvailableslots);
$stmt->bindParam(6, $txtBookedslots);
$stmt->bindParam(7, $Location_id
$c=$stmt->execute(); if($c==1)
{
echo "location details updated"; echo "<br/>";
echo "<a href=home.php>go to home</a>";
}
else {
echo "not updated";
}
?>
<?php
include './footer_log.php';
?>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<?php
include '/header_log.php';
?>
</head>
<body>
<?php
include '/body_log.php';
?>
<?php
session_start();
$Owner_id=$_SESSION['session_Owner_id'];
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("select * from Location");
$stmt->execute();
$c=$stmt->rowCount();
$Owner_id=array();
$location=array();
$address=array();
$city=array();
$sheltered=array();
$guarded=array();
$totalslots=array();
$bookedslots=array();
$availableslots=array();
$hourrate=array();
if($c>0)
{
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
Viewbookings.php
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
KHKABBUR INSTITUTE OF ENGINEERING 46
<?php
include '/header_log.php';
?>
</head>
<body>
<?php
include '/body_log.php';
?>
<?php
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("select * from Booking");
$stmt->execute();
$c=$stmt->rowCount();
$Location_id=array();
$Booking_id=array();
$Parkingdate=array();
$Parkingtime=array();
$Leavingtime=array();
$Charges=array();
$Status=array();
$customercode=array(); if($c>0)
{
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
array_push($Location_id,$row['Location_id']); array_push($Booking_id,$row['Booking_id']);
array_push($Parkingdate,$row['Parkingdate']);
array_push($Parkingtime,$row['Parkingtime']); array_push($Leavingtime,$row['Leavingtime']);
array_push($Charges,$row['Charges']); array_push($Status,$row['Status']);
array_push($customercode,$row['customercode']);
}
$arrlen=Count($Location_id);
echo "<div>";
echo "<h1>location list<h1>" ; echo "<table border=1>";
echo "<thead>";
echo "<th style=width:100px>Location_id</th>"; echo "<th style=width:100px>Booking_id</th>"; echo "<th
style=width:100px>Parkingdate</th>"; echo "<th style=width:100px>Parkingtime</th>"; echo "<th
style=width:100px>Leavingtime</th>"; echo "<th style=width:100px>Charges</th>"; echo "<th
style=width:100px>Status</th>";
echo "<th style=width:100px>customercode</th>"; echo "</thead>";
for($i=0;$i<$arrlen;$i++){ echo "<tr>";
echo "<td>" .$Location_id[$i]. "</td>"; echo "<td>" .$Booking_id[$i]. "</td>";
KHKABBUR INSTITUTE OF ENGINEERING 47
echo "<td>" .$Parkingdate[$i]. "</td>"; echo "<td>" .$Parkingtime[$i]. "</td>"; echo "<td>" .$Leavingtime[$i].
"</td>"; echo "<td>" .$Charges[$i]. "</td>"; echo "<td>" .$Status[$i]. "</td>";
echo "<td>" .$customercode[$i]. "</td>" echo "</tr>";
}
echo "</table>"; echo "</div>";
}
else
{
echo "No location to show";
}
?>
</body>
<?php
include '/footer_log.php';
?>
</html>
Changepasswordform
<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include '/header_log.php';
?>
</head>
<body>
<?php
include '/body_log.php';
?>
<form method="POST" action="changepassword.php">
<h3>Change Password</h3>
<table border="1">
<tr>
<td>old password</td>
<td><input type="text" name="txtoldpassword"></td>
</tr>
Changepassword.php
<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include '/header_log.php';
?>
</head>
<body>
<?php session_start();
/*fetch from input*/
$oldpassword=$_POST["txtoldpassword"];
$newpassword=$_POST["txtnewpassword"];
$confirmpassword=$_POST["txtconfirmpassword"];
KHKABBUR INSTITUTE OF ENGINEERING 49
/*fetch session info*/
$x=$_SESSION["session_password"];
$y=$_SESSION["session_email"];
/*compare old password with new pwd*/
if($oldpassword==$x){
/*compare new pwd and confirm pwd*/ if($newpassword==$confirmpassword){
/*update new in table*/
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("update owner set password=? where email=?");
$stmt->bindParam(1,$newpassword);
$stmt->bindParam(2,$y);
$stmt->execute();
$c=$stmt->rowCount();
$conn=null; if($c==1){
/*store newpassword in session*/
$_SESSION["session_password"]=$newpassword; echo "password updated";
}else{
echo "password not updated";
}
}else{
echo "new and confirm password do not match";
}
}else{
echo "old password is invalid";
}
?>
<br/>
<a href="home.php"><font color="white">Back to home</a>
<?php
include '/footer_log.php';
?>
</body>
</html>
Register.php
<?php
$name=$_POST["name"];
$address=$_POST["address"];
$city=$_POST["city"];
$pincode=$_POST["pin"];
$mobile=$_POST["mobile"];
$email=$_POST["email"];
$password=$_POST["password"];
$conn=new PDO("mysql:host=localhost;dbname=parkingdb", "root", null);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("insert into
customer(Name,Address,City,Pin,Mobile,Emailid,Password) values(?,?,?,?,?,?,?)");
$stmt->bindparam(1, $name);
$stmt->bindparam(2, $address);
$stmt->bindparam(3, $city);
$stmt->bindparam(4, $pincode);
$stmt->bindparam(5, $mobile);
$stmt->bindparam(6, $email);
$stmt->bindparam(7, $password); try{
if ($stmt->execute()){
echo "Registration successfully created.";
}
else {
echo "Registration failed, email already registered.";
}}
catch(Exception $e){ echo $e->getMessage();
}
?>
Login.php
<?php
$email = $_POST["email"];
$password =$_POST["password"];
$result = "false";
Change password.php
<?php
$confirmpassword=$_POST["txtconfirmpassword"];
$customercode=$_POST['txtcustomercode'];
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("update customer set Password=? where Customercode=?");
$stmt->bindParam(1,$confirmpassword);
$stmt->bindParam(2,$customercode);
$c=$stmt->execute();
TESTING
Software Testing has different goals and objectives.The major objectives of Software testing are
as follows:
• Finding defects which may get created by the programmer while developing the software.
• Gaining confidence in and providing information about the level of quality.
• To prevent defects.
• To make sure that the end result meets the business and user requirements.
Unit testing
Unit testing is a software testing method by which individual units of source code, sets of one or
more computer program modules together with associated control data, usage procedures, and
operating procedures, are tested to determine whether they are fit for use. Tests are typically
automated tests written and run by software developers to ensure that a section of an application
(known as the "unit") meets its design and behaves as intended. In procedural programming, a
unit could be an entire module, but it is more commonly an individual function or procedure. In
object-oriented programming, a unit is often an entire interface, such as a class, but could be an
individual method.By writing tests first for the smallest testable units, then the compound
behaviors between those, one can build up comprehensive tests for complex applications.
Integration testing
Integration testing is any type of software testing that seeks to verify the interfaces between
components against a software design. Software components may be integrated in an iterative
way or all together ("big bang"). Normally the former is considered a better practice since it
allows interface issues to be located more quickly and fixed.
Validation testing
Check all the requirements like functional, behavioral and performance requirement are validate
against the construction software.
System testing
System testing is testing conducted on a complete integrated system to evaluate the system's
compliance with its specified requirements.System testing takes, as its input, all of the integrated
components that have passed integration testing. The purpose of integration testing is to detect
any inconsistencies between the units that are integrated together (called assemblages). System
testing seeks to detect defects both within the "inter-assemblages" and also within the system as
a whole.[citation needed] The actual result is the behavior produced or observed when a
component or system is tested
Alpha testing
Alpha testing is simulated or actual operational testing by potential users/customers or an
independent test team at the developers' site. Alpha testing is often employed for off-the-shelf
software as a form of internal acceptance testing before the software goes to beta testing.[56]
Beta testing
Beta testing comes after alpha testing and can be considered a form of external
user acceptance testing. Versions of the software, known as beta versions, are
released to a limited audience outside of the programming team known as beta
testers. The software is released to groups of people so that further testing can
ensure the product has few faults or bugs. Beta versions can be made available to
the open public to increase the feedback field to a maximal number of future users
and to deliver value earlier, for an extended or even indefinite period of time
(perpetual beta).[57]
Module testing
Module testing is largely a white box oriented. The objective of doing Module,
testing is not to demonstrate proper functioning of the module but to demonstrate
the presence of an error in the module.
Interface errors
Performance errors
❖ Ensure whether the possible validity look ups have been provided to
validate data entry.
❖ The top level routines provide a natural test harness for lower level routines.
❖ Errors are localized to the new modules and interface being added.
CONCLUSION
➢ Users can get learn about parking areas for particular locations.
➢ It saves time in search of parking space available in such a long
parking area.
➢ Which will then reduces the fuel consumption, traffic volume as well
as the environmental pollution by increasing the efficiency of
transporta
Bibliographies
By searching on some websites on browser and using some books and some references of the
online subjects, but laundry service is our idea to create project.
References
Websites
1. https://www.searchprojects.net
2. https://nevonprojects.com
3. https://thelaundryproject.php
4. https://www.entrepreneurindia.com