You are on page 1of 93

DIRECTORATE OF TECHNICAL EDUCATION ,BENGALURU

JANATA SHIKSHANA SAMITI’S


K H KABBUR INSTITUTE OF ENGINEERING
VIDYAGIRI DHARWAD-580004

PROJECT REPORT ON
ONLINE PARKING BOOKING SYSTEM

SUBMITTED IN PARTIAL FULFILLMENT OF REQUIREMENTS OF THE


DIPLOMA IN
COMPUTER SCIENCE & ENGINEERING
FOR THE ACADEMIC YEAR 2019-20

UNDER THE GUIDANCE OF


Smt.V.R.TIWARI B.E (CS), M.Tech (CS)

SUBMITTED BY

SANGEETA SHIVANNAVAR 202CS17047


SEEMA MAGADUM 202CS17048
VAISHNAVI MAHENDRAKAR 202CS17062
SUSHMA GANIGER 202CS17059
YOGITA WARAD 202CS17063
A PROJECT REPORT ON
ONLINE PARKING BOOKING SYSTEM

SUBMITTED FOR PARTIAL FULLFILLMENT FOR THE AWARD OF THE OF


DIPLOMA IN COMPUTER SCIENCE AND ENGINEERING

BY BATCH

YOGITA WARAD 202CS17063


SEEMA MAGADUM 202CS17048
SANGEETA SHIVANNAVAR 202CS17047
VAISHNAVI MAHENDRAKAR 202CS17062
SUSHMA GANIGER 202CS17059

UNDER THE GUIDANCE OF


Smt.V.R.TIWARI B.E (CS), M.Tech (CS)

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

I, SANGEETA SHIVANNAVAR a student of


Diploma in Computer Science and Engineering Department bearing Reg No
202CS17047 of KHKABBUR INSTITUTE OF ENGINEERING polytechnic,
hereby declare that I owe full responsibility for the information, results and
conclusions provided in this project work titled “ONLINE PARKING
BOOKING SYSTEM” submitted to State Board Of Technical Examinations,
Government of Karnataka for the award of Diploma in Computer Science and
Engineering. To the best of my knowledge, this project work has not been
submitted in part or full elsewhere in any other institution/organization for the
award of any certificate/diploma/degree. I have completely taken care in
acknowledging the contribution of others in this academic work. I further declare
that in case of any violation of intellectual property rights and particulars declared,
found at any stage, I, as the candidate will be solely responsible for the same.

DATE:

PLACE:

SIGNATURE OF THE CANDIDATE

Name:
Reg No:

KHKABBUR INSTITUTE OF ENGINEERING i


ONLINE PARKING BOOKING SYSTEM

SIGNATURE SIGNATURE

Smt.V R Tiwari. Smt.V R Tiwari.

GUIDE, Head Of Department,

Computer Science &Engineering, Computer Science & Engineering,

K H Kabbur Institute of Engineering, K H Kabbur Institute of Engineering,

Vidyagiri,Dharwad-580004.. Vidyagiri,Dharwad-580004.

KHKABBUR INSTITUTE OF ENGINEERING ii


DEPARTMENT OF TECHNICAL EDUCATION, BENGALURU-
580001.
K H KABBUR INSTITUTE OF ENGINEERING

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.

It is further understood that by this certificate the undersigned do


not endorse or approve any statement made, opinion expressed or conclusion drawn there in but
approve the project only for the purpose for which it is submitted;

Guide Head of Department Principal

Name and Signature Examiner

1.

2.

KHKABBUR INSTITUTE OF ENGINEERING iii


ONLINE PARKING BOOKING SYSTEM

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.

I take this opportunity to express my deep sense of gratitude to Smt


V.R.Tiwari B.E(CS), M.Tech(CS), Head of the department of computer science, K. H. Kabbur
Institute of Engineering Vidyagiri, Dharwad and, Principle sri VASANT DESAI, K. H. Kabbur
Institute of Engineering Vidyagiri, Dharwad for their encouragement and valuable suggestion
during the course of the project.

I also acknowledge my gratitude to all Staff member of computer science


K. H. Kabbur Institute of Engineering Vidyagiri, Dharwad who have extended their moral
support during the course of the project.

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

KHKABBUR INSTITUTE OF ENGINEERING iv


ONLINE PARKING BOOKING SYSTEM

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.

KHKABBUR INSTITUTE OF ENGINEERING v


ONLINE PARKING BOOKING SYSTEM

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

KHKABBUR INSTITUTE OF ENGINEERING vi


CHAPTER-1

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.

KHKABBUR INSTITUTE OF ENGINEERING 1


CHAPTER-2

OBJECTIVE

Aim of the project

To develop Web and Android Based Parking Booking System.

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.

KHKABBUR INSTITUTE OF ENGINEERING 2


Proposed system

The proposed project is a online parking booking system that provides


customer an easy way of reserving a parking space online.This app offers a web based
reservation system where users can view various parking areas and check if space is available or
not.

➢ Various parking lots have to be registered by the respective admin of the


parking lot.
➢ The admin has to update the location of the lot, parking capacity and price.
➢ The user can choose a parking space i.e nearest to his destination after
getting log in to the application.
➢ The user books a particular slot.
➢ If the user doesn’t arrive to the parking slot within 1 hour from the time of
booking his booking will be canceled and the status is updated to “EMPTY”
by the admin of that particular parking lot.

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.

KHKABBUR INSTITUTE OF ENGINEERING 3


CHAPTER-3

TOOLS/ENVIRONMENT USED

3.1 Software requirements


• HTML for form design.
• Server side script using PHP.
• My-SQL to store data.
• IDE :NetBeans.
• XAMPP server for Apache, My-SQL and PHP.
• Android SDK, JDK,JRE.
• Android studio fro android.
• OS: Microsoft Windows 8/10.

3.2 Hardware requirements


1. Server Configuration
• Intel core processor or any equivalent processor.
• 4.00 GB RAM
2. Client side configuration
• Intel core processor or any equivalent processor.
• 4.00 GB RAM or any higher primary memories i.e. RAM.
• 80GB of secondary memory i.e. Hard Disk.
3. Display
• Any colour monitor that provides at least 64 bit or higher of 800x600 pixel
resolution or better.
• VG/SVG display.
4. Keyboard.
5. Mouse.

Duration of the project:

▪ Estimated Duration :3months


▪ ExceptedDuration :2months

KHKABBUR INSTITUTE OF ENGINEERING 4


3.3 Introduction to PHP:
PHP started out as a small open source project that evolved as more and more people found out
how useful it was. Rasmus Lerdorf unleashed the first version of PHP way back in 1994.

• 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.

KHKABBUR INSTITUTE OF ENGINEERING 5


Characteristics of PHP

Five important characteristics make PHP's practical nature possible −

• 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.

KHKABBUR INSTITUTE OF ENGINEERING 6


Common Uses of PHP
PHP performs system functions, i.e. from files on a system it can create,
open, read, write, and close them. The other uses of PHP are:

• 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 stands for Cascading Style Sheets

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

KHKABBUR INSTITUTE OF ENGINEERING 7


CSS Syntax:

A CSS rule-set consists of a selector and a declaration block:

The selector points to the HTML element you want to style.


The declaration block contains one or more declarations separated by semicolons.
Each declaration includes a CSS property name and a value, separated by a colon.
❖ A CSS declaration always ends with a semicolon, and declaration blocks are
surrounded by curly braces.

HTML:

Hyper Text Mark-up Language, commonly referred to as HTML, is the


standard mark-up language used to create WebPages. Along with CSS and
JavaScript, HTML is a cornerstone technology used to create web pages as
well as to create user interfaces for mobile and web applications. Web
browsers can read HTML files and render them into visible or audible web
pages. HTML describes the structure of a website semantically pages.
HTML describes the structure of a programming language.

KHKABBUR INSTITUTE OF ENGINEERING 8


HTML can embed scripts written in languages such as Java scripts which affect the behavior
of HTML web pages. HTML markup can also refer the browser to Cascading Style Sheets (CSS) to
define the look and layout of text and other material. The WORLD WIDE WEB CONSORTIUM
(W3C), maintainer of both the HTML and the CSS standards, has encouraged the use of CSS over
explicit presentational HTML since 1997.

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:

⮚ It is not a programming language.


⮚ It is not a data description language.
⮚ It is simple to understand and implement.
⮚ HTML constructs are very easy to comprehend, and can be used effectively by anybody.
⮚ The methodology used by HTML to mark up information is independent of its representation
on a particular hardware or software architecture.

⮚ HTML syntax is a worldwide standard.

KHKABBUR INSTITUTE OF ENGINEERING 9


Wamp:

WampServer refers to a software stack for the Microsoft Windows operating


system, created by Romain Bourdonand consisting of the Apache
webserver,OpenSSL for SSL support, MySQL database and PHP programming
language.

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.

Other possible advantages of Java include:


➢ Object-oriented
➢ Platform independence
➢ Excellent networking capabilities
➢ No pointers, so it is easier to program and debug than C++
➢ Lots of support available in books and on the web
➢ Wide variety of Application Programmer Interfaces (APIs)
➢ Implementations are available free of charge for many popular platforms

KHKABBUR INSTITUTE OF ENGINEERING 10


THE JAVA PLATFORM

A platform is the hardware or software environment in which a program


runs. The Java platform differs from most other platforms in that it's a software-
only platform that runs on top of other, hardware-based platforms. Most other
platforms are described as a combination of hardware and operating system.

The Java platform has two components:

➢ The Java Virtual Machine (Java VM)


➢ The Java Application Programming Interface (Java API) You've already
been introduced to the Java VM. It's the base for the Java platform and is
ported onto various hardware-based platforms.

The Java API is a large collection of ready-made software components that


provide many useful capabilities, such as graphical user interface (GUI) widgets.

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.

Variables have a statictype(integerorstringforexample) that remains the same during the


lifespan of a running program in Java, and have a dynamictype(Numberor String for
example) thatcan change during the lifespan of a running program in JavaScript.
Variables must be declared prior to use in Java,and have a undefined value when referred to
prior to assignment in JavaScript.

KHKABBUR INSTITUTE OF ENGINEERING 11


JavaScript is Netscape's cross-platform, object-oriented scripting language
Core JavaScript contains a core set of objects, such as Array, Date, and Math, and a
core set of language elements such as operators, control structures, and statements.
It is mainly used here for validation purpose

Benefits of JAVASCRIPT:
JavaScript has a number of benefits to anyone who wants to make their Web
site dynamic.

➢ It is widely supported in Web browsers.


➢ It gives easy access to the document objects and can manipulate most of
them.
➢ JavaScript can give interesting animations without the long download times
associated with many multimedia data types.
➢ Web surfers don’t need a special plug-in to use scripts.
➢ JavaScript is relatively secure- JavaScript can neither read from our hard
drive nor write to it, and we cannot get a virus infection directly from
JavaScript.

KHKABBUR INSTITUTE OF ENGINEERING 12


3.4 SQL SERVER:

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 uses a standard form of the well-known SQL data language.

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).

MySQL is customizable.The open-source GPL license allows programmers to modify


the MySQL software to fit their own specific environments.

KHKABBUR INSTITUTE OF ENGINEERING 13


3.5 Android
Android is an open source and Linux-based Operating System for mobile
devices such as smartphones and tablet computers. Android was developed by the
Open Handset Alliance, led by Google, and other companies.

Android offers a unified approach to application development for mobile


devices which means developers need only develop for Android, and their
applications should be able to run on different devices powered by Android.

Freely Available Software Development Kit

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.

Android applications can be developed on the following operating systems:


• Windows XP or Vista
• Mac OS X 10.4.8 or later (x86 only)
• Linux (tested on Linux Ubuntu 6.06 LTS, Dapper Drake)

KHKABBUR INSTITUTE OF ENGINEERING 14


Reasonable Learning Curve for Developers

Android applications are written in a well-respected programming


language: Java. The Android application framework includes traditional
programming constructs, such as threads and processes and specially designed data
structures to encapsulate objects commonly used in mobile applications.
Developers can rely on familiar class libraries, such as java.net and java. Text.
Specialty libraries for tasks like graphics and database management are
implemented using well-defined open standards like OpenGL Embedded Systems
(OpenGL ES) or SQLite.

Enabling Development of Powerful Application

In the past, handset manufacturers often established special relationships


with trusted third-party software developers (OEM/ODM relationships).This elite
group of software developers wrote native applications, such as messaging and
Web browsers, which shipped on the handset as part of the phone’s core feature
set. To design these applications, the manufacturer would grant the developer
privileged inside access and knowledge of a handset’s internal software

framework and firmware. On the Android platform, there is no


distinction between native and third-party applications, enabling healthy
competition among application developers. All Android applications use the same
libraries. Android applications have unprecedented access to the underlying
hardware, allowing developers to write much more powerful applications.
Applications can be extended or replaced altogether.

KHKABBUR INSTITUTE OF ENGINEERING 15


3.6Introduction to MySQL:

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

Windows, NetBSD, NovellNetWare, OpenBSD, OpenSolaris, OS/2 Warp, QNX,


Oracle Solaris, Symbian, SunOS, SCO OpenServer, SCO UnixWare,
Sanos and Tru64. A port of MySQL to OpenVMS also exists.[17]

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.

• In the relational model, data is stored in structures called relations or tables.


• SQL statements are issued for the purpose of:
• Data definition: Defining tables and structures in the database (DDL used to
create, alter and drop schema objects such as tables and indexes).
• Data manipulation: Used to manipulate the data within those schema objects
(DML Inserting, Updating, Deleting the data, and Querying the Database).

A schema is a collection of database objects that can include: tables, views, indexes
and sequences

KHKABBUR INSTITUTE OF ENGINEERING 16


CHAPTER-4

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.

KHKABBUR INSTITUTE OF ENGINEERING 17


SCOPE:
This project consists of booking the parking slots based on Android
and web applications.
This project is applicable to park vehicles in big malls, parking areas like
national parks and 5-star hotels etc.

4.2 SYSTEM INTERFACE:

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.

KHKABBUR INSTITUTE OF ENGINEERING 18


4.4 METHODOLOGY

 The slot application method follows a sequence as started below: Step1:


Initially the slot selection is made by the user from his mobile phones. He
checks for the availability of a parking slot that is nearest location. If it is
available, he moves to the next stage or else go to the initial State.
 Step2: Transfers request for parking slot from the mobile using Android
application.
 Step3: The Parking Control Unit (PUC) gets the slot number requested by
tuser.
 Step4: If the payment is done successfully, then the requested slot is reserved
in the parking area
 .Step5:After reserving a particular slot by the user then the status of that
respective slot will be marked as RED=RESERVED and the remaining will
be GREEN=EMPTY.
 Step6: As soon as the vehicle gets entered into the parking slot, the timer
gets ON and measures the total time.
 Step7: As soon as the vehicle moves out of the parking slot, the timer gets
OFF and the total cost will be displayed.

KHKABBUR INSTITUTE OF ENGINEERING 19


CHAPTER-5

SYSTEM DESIGN

A data-flow diagram (DFD) is a way of representing a flow of a data of a process or


a system (usually an information 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.

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.

Some of the examples of graphical modelling languages are

a. Unified Modelling Language (UML): To describe software both structurally and behaviourally
with graphical notation.

KHKABBUR INSTITUTE OF ENGINEERING 20


b. Flowchart : A schematic or stepwise representation of an algorithm.

c. Business Process Modelling Notation (BPMN): Used for Process Modelling language.

d. Systems Modelling Language (SysML): Used for systems engineering.

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).

3) Physical design: Defined as


a) How users add information to the system and how the system represents information back to
the user.
b) How the data is modelled and stored within the system.
c) How data moves through the system, how data is validated, secured and/or transformed as it
flows through and out of the system

5.1 Dataflow Diagram:

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 FlowDiagram Notations:

Data Flow:

It maybefrom file–to-fileprocess or process–process.It

Isgenerallyin term of attributes. Theremaybe either an Data

flow orinputdata flow.

KHKABBUR INSTITUTE OF ENGINEERING 21


Funtional process

The process is nothing but the transformation of data it starts the

Subjected and it has the verb followed by subject.

Actor/source/sink

The files which are outside the system and used process or

The processor of the system.

PARKING BOOKING SYSTEM LEVEL DFD

KHKABBUR INSTITUTE OF ENGINEERING 22


DFD diagram: LEVEL 1

KHKABBUR INSTITUTE OF ENGINEERING 23


DFD diagram: LEVEL 2

KHKABBUR INSTITUTE OF ENGINEERING 24


5.2 ENTITY RELATIONSHIP DIAGRAM
An entity relationship diagram (ERD) shows the relationships of entity sets stored in a
database. An entity in this context is an object, a component of data. An entity set is a collection
of similar entities. These entities can have attributes that define its properties.

Three Types of Relationships in an ERD Diagram

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. one-to-one relationship: In relational database design, a one-to-one (1:1) relationship exists


when zero or one instance of entity A can be associated with zero or one instance of entity B,
and zero or one instance of entity B can be associated with zero or one instance of entity A.
(abbreviated 1:1)
2. one-to-many relationship: (abbreviated 1:N) In relational database design, a one-to-many (1:N)
relationship exists when, for one instance of entity A, there exists zero, one, or many instances
of entity B; but for one instance of entity B, there exists zero or one instance of entity A.
3. many-to-many relationship: In relational database design, a many-to-many (M:N) relationship
exists when, for one instance of entity A, there exists zero, one, or many instances of entity B;
and for one instance of entity B, there exists zero, one, or many instances of entity A.
(abbreviated M:N)

Following are simple examples of each:

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

KHKABBUR INSTITUTE OF ENGINEERING 25


ER-DIAGRAM

KHKABBUR INSTITUTE OF ENGINEERING 26


Introduction to Database:

A database is an organized collection of data, generally stored and accessed


electronically from a computer system. Where databases are more complex they
are often developed using formal design and modeling techniques.

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.

A Database Management System (DBMS) is computer software designed for


the purpose of managing databases, a large set of structured data, and run
operations on the data requested by numerous users. Typical examples of DBMSs
include Oracle, DB2, Microsoft Access, Microsoft SQL Server, Firebird,
PostgreSQL, MySQL,

SQLite, FileMaker and Sybase Adaptive Server Enterprise. DBMSs are


typically used by Database administrators in the creation of Database systems.
Typical examples of DBMS use include accounting, human resources and
customer support systems. Originally found only in large companies with the
computer hardware needed to support large data sets, DBMSs have more recently
emerged as a fairly standard part of any company back office.

KHKABBUR INSTITUTE OF ENGINEERING 27


Parking admin:

Field Type Null Key Default Extra


Email Varchar(10) No PRI Null
password Varchar(!0) Yes Null

Owner:

Field Type Null Key Default Extra


Owner id Int(11) NO PRI Null Autoincrement
Name Varchar(20) Yes Null
Mobile Varchar(10) Yes Null
Email Varchar(50) Yes UNI Null
password Varchar(!0) Yes Null

Customer:

Field Type Null Key Default Extra


Customercode Int(11) No PRI Null Autoincremnt
Name Varchar(20) Yes Null
Address Varchar(100) Yes Null
City Varchar(20) Yes Null
Pin Varchar(6) Yes Null
Mobile Varchar(10) Yes Null
Email Varchar(50) Yes UNI Null
password Varchar(!0) Yes Null

KHKABBUR INSTITUTE OF ENGINEERING 28


Location:

Field Type Null Key Default Extra


Owner id Int(11) Yes Null
Location id Int(11 No PRI Null autoincrement
Address Varchar(100) Yes Null
City Varchar(100) Yes Null
Sheltered Varchar(20) Yes Null
Guarded Char(1) Yes Null
Totalslots Char(1) Yes Null
Availableslots Int(11) Yes Null
Bookingslots Int(11) Yes Null
hourrate Int(11) Yes Null

Booking

Field Type Null Key Default Extra


Booking id Int(11) No PRI Null autoincrement
Locatin id Int(11) Yes MUL Null
Parkingdate Date Yes Null
Parkingtime Time Yes Null
Leavingtime Time Yes Null
Charges Int(11) Yes Null
Ststus Varchar(5) Yes Null
customercode Int(11) Yes MUL Null

KHKABBUR INSTITUTE OF ENGINEERING 29


CHAPTER-6

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>

KHKABBUR INSTITUTE OF ENGINEERING 30


<br>
<br>
</tr>
<br>
<tr>
<td><font size="5px" color="yellow">New Password</td></font><br><br>
<td><input type="password" name="txtnewpassword" size="40px"></td>
<br>
<br></tr>
<br><tr>
<td><font size="5px" color="white">Confirm Password</td></font><br><br>
<td><input type="password" name="txtconfirmpassword" size="40px"></td>
<br>
<br>
</tr>
<br>
<tr> <td colspan="3">
<div id="parent-div" style="width: 100px; height: 100px; ">
<input type="submit" name="btn" value="REGISTER" style="width: 120%; height: 40%; font-size: 20px; display:
bold"></td>
</div>
</tr>
</center>
</form></body>
<?php
include '/footer_log.php';
?>
</html>

Register.php

<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include '/header_log.php';
?>
</head>

KHKABBUR INSTITUTE OF ENGINEERING 31


<body>
<?php
$name=$_POST['txtname'];
$mobile=$_POST['txtmobile'];
$email=$_POST['txtemail'];
$newpassword=$_POST['txtnewpassword'];
$confirmpassword=$_POST['txtconfirmpassword'];
if($newpassword==$confirmpassword){
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("insert into
Owner(name,mobile,email,password)"
. "". "values" . "(?,?,?,?)");
$stmt->bindparam(1,$name);
$stmt->bindparam(2,$mobile);
$stmt->bindparam(3,$email);
$stmt->bindparam(4,$newpassword);
$stmt->execute();
$c=$stmt->rowcount(); if($c>0){
echo "registered successfully";
}
else{
echo "registeration unsuccessfull";
}
}
else {
echo "new and confirm password are not equal";
}
?>
<a href="loginform.php"><font color="white"><h1>Back to home</h1></a>
<?php
include '/footer_log.php';
?>
</body>
</html>

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>

KHKABBUR INSTITUTE OF ENGINEERING 33


Login.php
<html>
<head>
<meta charset="UTF-8">
<title></title>
<?php
include '/header_log.php';
?>
</head>
<body>
<?php session_start();
$emailid=$_POST["txtemail"];
$password=$_POST["txtpassword"];
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("select Owner_id from Owner where email=? and password=?");
$stmt->bindparam(1,$emailid);
$stmt->bindparam(2,$password);
$stmt->execute();
$c=$stmt->rowCount();
if($c==1)
{
$row=$stmt->fetch(PDO::FETCH_ASSOC);
$Owner_id=$row["Owner_id"];
$conn=null;
//store emailid ,pwd ,Owner_id in session.
$_SESSION["session_email"]=$emailid;
$_SESSION["session_password"]=$password;
$_SESSION["session_Owner_id"]=$Owner_id; header("location:home.php");
}else{
$conn=null; header('location:loginform.php');
}
?>
<a href="regform.php"><font size="20px" color="white">Register Here</a>
<?php
include '/footer_log.php';
?>
</body>
</html>

KHKABBUR INSTITUTE OF ENGINEERING 34


Home.php

<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>

KHKABBUR INSTITUTE OF ENGINEERING 40


<form method="POST" action="next.php">
<table border="1">
<tr><td>Select location</td>
<td><select name="ddllocation">
<?php for($i=0;$i<$c;$i++){
echo "<option value=$Owner_id[$i]>$Location[$i]</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>now available slots are</td>
<td><input type="text" name="txtAvailableslots"/></td>
</tr>
<tr> <td colspan="3">
<div id="parent-div" style="width: 100px; height: 100px; ">
<input type="submit" name="btn" value="SUBMIT" style="width: 120%; height: 40%; font-size: 20px; display:
bold"></td>
</div>
</tr>
</table>
</form>
<?php echo $msg;
?>
</body>
<?php
include './footer_log.php';
?>
</html>

Updatelocationform

<?php
include './header_log.php';
?>
<?php
include './body_log.php';
?>

KHKABBUR INSTITUTE OF ENGINEERING 41


<?php
$Location_id=$_REQUEST["Location_id"];
$conn=new PDO("mysql:host=localhost;dbname=parkingdb","root",null);
$stmt=$conn->prepare("select * from location where Location_id=?");
$stmt->bindparam(1,$Location_id);
$stmt->execute();
$c=$stmt->rowCount(); if($c>0)
{
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
$Location=$row["Location"];
$Sheltered=$row["Sheltered"];
$Guarded=$row["Guarded"];
$totalSlots=$row["totalSlots"];
$Bookedslots=$row["Bookedslots"];
$Availableslots=$row["Availableslots"];
$hourRate=$row["hourRate"];
}
}
else {
echo "not found";
}
$conn=NULL;
?>

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>

KHKABBUR INSTITUTE OF ENGINEERING 42


<tr>
<td> Location_id</td>
<td><input type="text" name="Location_id" value="<?=$Location_id?>"
readonly=""/></td>
</tr>
<tr>
<td>Location</td>
<td><input type="text" name="txtLocation" readonly="" value="<?=$Location?>"/></td>
</tr>
<tr>
<td>Sheltered</td>
<td>yes<input type="radio" name="txtsheltered" value="yes" checked>
no<input type="radio" name="txtsheltered" value="no"></td>
</tr>
<tr>
<td>Guarded</td>
<td>yes<input type="radio" name="txtguarded" value="yes" checked/>
no<input type="radio" name="txtguarded" value="no"/></td>
</tr>
<tr>
<td>totalSlots</td>
<td><input type="text" name="txttotalSlots" value="<?=$totalSlots?>" requried=""/></td>
</tr>
<tr>
<td>Booked slots</td>
<td><input type="text" name="txtBookedslots" value="<?=$Bookedslots?>" requried=""/></td>
</tr><tr>
<td>Available slots</td>
<td><input type="text" name="txtAvailableslots" value="<?=$Availableslots?>" requried=""/></td>
</tr><tr>
<td>hour Rate</td>
<td><input type="text" name="txthourRate" value="<?=$hourRate?>" requried=""/></td>
</tr>
<tr> <td colspan="3">
<div id="parent-div" style="width: 100px; height: 100px; ">
<input type="submit" name="btn" value="UPDATE LOCATION" style="width: 200%; height: 40%; font-
size: 20px; display: bold"></td>
</div>
KHKABBUR INSTITUTE OF ENGINEERING 43
</tr></body>
</html>

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';
?>

KHKABBUR INSTITUTE OF ENGINEERING 44


Viewlocation.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))
{

array_push($location,$row['Location']); array_push($address,$row['Address']); array_push($city,$row['city']);


KHKABBUR INSTITUTE OF ENGINEERING 45
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']);
array_push($Owner_id,$row['Owner_id']);
}
$arrlen=Count($Owner_id); echo "<div>";
echo "<h3>location list<h3>" ; echo "<table border=1>";
echo "<thead>";
echo "<th style=width:100px>Owner_id</th>";
echo "<th style=width:100px>location</th>"; echo "<th style=width:100px>address</th>"; echo "<th
style=width:100px>city</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>" .$Owner_id[$i]. "</td>"; echo "<td>" .$location[$i]. "</td>"; echo "<td>" .$address[$i]. "</td>"; echo
"<td>" .$city[$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 to show";
}
?>
</body>
<?php
include '/footer_log.php';
?>
</html>

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>

KHKABBUR INSTITUTE OF ENGINEERING 48


<tr>
<td>new password</td>
<td><input type="password" name="txtnewpassword"></td>
</tr>
<tr>
<td>confirm password</td>
<td><input type="password" name="txtconfirmpassword"></td>
</tr>
<tr> <td colspan="3">
<div id="parent-div" style="width: 100px; height: 100px; ">
<input type="submit" name="btn" value="CHANGE PASSWORD" style="width: 240%; height: 40%;
font-size: 20px; display: bold"></td>
</div>
</tr>
</table>
</form>
</body>
<?php
include '/footer_log.php';
?>
</html>

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>

KHKABBUR INSTITUTE OF ENGINEERING 50


CUSTOMER

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";

$conn=new PDO("mysql:host=localhost;dbname=parkingdb", "root", null);


$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
try {

KHKABBUR INSTITUTE OF ENGINEERING 51


$stmt = $conn->prepare("select Customercode from customer where Emailid=? and Password=?");
$stmt->bindParam(1, $email);
$stmt->bindParam(2, $password);
$stmt->execute();
$c = $stmt->rowCount(); if ($c == 1) {
$row = $stmt->fetch(PDO::FETCH_ASSOC);
$result = $row["Customercode"];
} else {
$result = "false";
}
} catch (Exception $e) {
$result = "false";
}
$conn = null; echo $result;
?>

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();

$conn=null; if($c>0){ echo "true";


}else{
echo "false";
}
?>

KHKABBUR INSTITUTE OF ENGINEERING 52


CHAPTER-7

TESTING

Software testing is an investigation conducted to provide stakeholders with information about


the quality of the software product or service under test.[1] Software testing can also provide an
objective, independent view of the software to allow the business to appreciate and understand
the risks of software implementation. Test techniques include the process of executing a program
or application with the intent of finding software bugs (errors or other defects), and verifying that
the software product is fit for use.
Software testing involves the execution of a software component or system component
to evaluate one or more properties of interest. In general, these properties indicate the extent to
which the component or system under test:

• meets the requirements that guided its design and development,


• responds correctly to all kinds of inputs,
• performs its functions within an acceptable time,
• it is sufficiently usable,
• can be installed and run in its intended environments, and
• achieves the general result its stakeholders desire.

7.1 Objectives of 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.

KHKABBUR INSTITUTE OF ENGINEERING 53


• To ensure that it satisfies the BRS that is Business Requirement Specification and SRS
that is System Requirement Specifications.
• To gain the confidence of the customers by providing them a quality product.

7.2 Principles of Testing:

There are seven principles in software testing:


• Testing shows presence of defects.
• Exhaustive testing is not possible.
• Early testing.
• Defect clustering.
• Pesticide paradox.
• Testing is context dependent.
• Absence of errors fallacy.

7.3 Software testing strategies:


A strategy of software testing is shown in the context of spiral.

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.

KHKABBUR INSTITUTE OF ENGINEERING 54


Integration testing works to expose defects in the interfaces and interaction between integrated
components (modules). Progressively larger groups of tested software components
corresponding to elements of the architectural design are integrated and tested until the software
works as a system.

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]

KHKABBUR INSTITUTE OF ENGINEERING 55


Acceptance testing:
User acceptance testing and Alpha and beta testing are described in the next testing
types section. Operational acceptance is used to conduct operational readiness of a
product, service or system as part of a quality management system. OAT is a
common type of non-functional software testing, used mainly in software
development and software maintenance projects.

Module testing

Module testing is defined as a software testing type, which checks individual


subprograms, subroutines, classes, or procedures in a program. Instead of testing
whole software program at once, module testing recommends testing the smaller
building blocks of the program.

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.

7.4 Test Approach:

Black box testing

Incorrect or missing function

Interface errors

Errors in external database errors

Performance errors

Initialization and terminate errors.

White Box Testing:

❖ Check whether all independent paths within a module at least once.

KHKABBUR INSTITUTE OF ENGINEERING 56


❖ Exercise all logic are true and false

❖ Exercise all the loops within boundaries within their boundaries.

❖ Exercise in the internal data structure to ensure validity

❖ Ensure whether the possible validity look ups have been provided to
validate data entry.

Top down integration testing offers several advantages.

❖ System integration is distributed throughout implementation phase.

❖ Top level interface are tested first most often.

❖ The top level routines provide a natural test harness for lower level routines.

❖ Errors are localized to the new modules and interface being added.

KHKABBUR INSTITUTE OF ENGINEERING 57


CHAPTER-8

INPUT AND OUTPUT SCREEN

KHKABBUR INSTITUTE OF ENGINEERING 58


KHKABBUR INSTITUTE OF ENGINEERING 59
KHKABBUR INSTITUTE OF ENGINEERING 60
KHKABBUR INSTITUTE OF ENGINEERING 61
KHKABBUR INSTITUTE OF ENGINEERING 62
KHKABBUR INSTITUTE OF ENGINEERING 63
KHKABBUR INSTITUTE OF ENGINEERING 64
KHKABBUR INSTITUTE OF ENGINEERING 65
KHKABBUR INSTITUTE OF ENGINEERING 66
KHKABBUR INSTITUTE OF ENGINEERING 67
KHKABBUR INSTITUTE OF ENGINEERING 68
CHAPTER-9

LIMITATIONS OF THE PROJECT

❖ The project need a continuous internet connection.


❖ Save time and convenience with the optional to book your slots through onlin
❖ This project was made as per user requirements and there is lots of further
improvement can be done in the area of user interface, database
performance, query processing.
❖ This is limited to small and medium scale libraries.

KHKABBUR INSTITUTE OF ENGINEERING 69


CHAPTER-10

FUTURE SCOPE OF THE PROJECT

Scope and future enhancement

The scope of the future to adopt this online parking booking


system(OPBS)so it can be displayed on a space availability through smart
phone application drivers are not free there will be aware of this ,no spaces

This project is applicable to park vehicles in big malls , parking


areas like national parks and 5 star hotels etc.

KHKABBUR INSTITUTE OF ENGINEERING 70


CHAPTER-11

CONCLUSION

➢ As conclusion, the objective of online parking booking system have


been achieved.

➢ The difficulty of searching available parking lots has been completely


eliminated by reserving slots via the proposed system

➢ 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.

➢ An efficient parking system will majorly reduce the parking problem.


➢ This system shows how the parking problem at crowded places can be
managed efficiently.

➢ It helps the clients in finding out the availability of a parking place,


get the availability confirmed, and reach the place within the allotted
time.

➢ The system reduces the human efforts required in parking process by


converting the whole parking process to automation.

➢ Booking a parking Slot is via a Smartphone is easier for a user to


operate

➢ Which will then reduces the fuel consumption, traffic volume as well
as the environmental pollution by increasing the efficiency of
transporta

KHKABBUR INSTITUTE OF ENGINEERING 71


CHAPTER-12

REFERENCES AND BIBLIOGRAPHY

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

1. Computer science projects| GeeksforGeeks


2. Final year projects for computer science cse| NevonProjects
3. Best final year projects for CSE students| SkyfiLabs

Websites

1. https://www.searchprojects.net
2. https://nevonprojects.com
3. https://thelaundryproject.php
4. https://www.entrepreneurindia.com

KHKABBUR INSTITUTE OF ENGINEERING 72


LOG SHEET
SL.NO DATE TASK PROGRESS STAFF
OF SIGNATURE
TASK
1 24/12/2019 Collection of data through internet Completed
2 27/12/2019 Collection of data through internet Completed
3 31/12/2109 Collection of data through various Completed
portals
4 3/1/2020 Writing code for the project Completed
5 7/1/2020 Writing code for the project Completed
6 10/1/2020 Analysis of the developing project Completed
7 14/1/2020 Analysis of the developing project Completed
8 17/1/2020 Writing code for the database Completed
9 21/1/2020 Writing code for the project Completed
connectivity
10 24/1/2020 Writing code for the modules Completed
11 28/1/2020 Connecting the modules with Completed
the database
12 31/1/2020 Analysis of the developing project Completed
13 4/2/2020 Modification of the web view Completed
14 7//2/2020 Writing code for admin privileges Completed
15 11/2/2020 Updating database for a admin Completed
16 14/2/2020 Updating database for menu Completed
17 18/2/2020 Updating database for feedback Completed
18 21/2/2020 Consulting the guide for suggestions Completed
19 25/2/2020 Implementing the guidelines given Completed
by the guide
20 28/2/2020 Preparation of Cover page Completed

21 3/3/2020 Preparation of Acknowledgement Completed


and Content
22 6/3/2020 Preparation of Dataflow diagram Completed
23 10/3/2020 Preparation of ER diagram Completed
24 13/3/2020 Demonstration Completed
25 Submission of the project

Signature of the guide Signature of student


KHKABBUR INSTITUTE OF ENGINEERING 73
CIE ASSESSMENT FOR FINAL REVIEW ( VI SEMESTER)

SL.NO PARTICULARS MAX MARKS


MARKS OBTAINED
1 LOG OF ACTIVITY (plan and schedule) 05
2 REPORT 10
3 PRESENTATION 10
TOTAL 25

SIGNATURE OF GUIDE SIGNATURE OF HOD

KHKABBUR INSTITUTE OF ENGINEERING 74


PRESENTATION

KHKABBUR INSTITUTE OF ENGINEERING 75


KHKABBUR INSTITUTE OF ENGINEERING 76
KHKABBUR INSTITUTE OF ENGINEERING 77
KHKABBUR INSTITUTE OF ENGINEERING 78
KHKABBUR INSTITUTE OF ENGINEERING 79
KHKABBUR INSTITUTE OF ENGINEERING 80
KHKABBUR INSTITUTE OF ENGINEERING 81
KHKABBUR INSTITUTE OF ENGINEERING 82
KHKABBUR INSTITUTE OF ENGINEERING 83
KHKABBUR INSTITUTE OF ENGINEERING 84
KHKABBUR INSTITUTE OF ENGINEERING 85

You might also like