Download as pdf or txt
Download as pdf or txt
You are on page 1of 65

VIDYABHARTI TRUST COLLEGE OF BUSINESS, COMPUTER

SCIENCE & RESEARCH. UMRAKH

PROJECT REPORT

AS A PARTIAL REQUIREMENT FOR


THE DEGREE OF

BACHELOR OF COMPUTER
APPLICATION
(B.C.A)

YEAR: 2022 - 2023

“ONLINE HOTEL BOOKING SYSTEM”

GUIDED BY: SUBMITTED BY:

Mrs. Krishna Mistry Mr. Dhruv Patel (2128)


Mr. Kishan Patel (2141)
Vidyabharti Trust College of Business, Computer
Science & Research . Umrakh
At & Po: Umrakh, Ta: Bardoli, Dist: Surat – 394345, Gujarat, INDIA.

CERTIFICATE
This is to certify that Mr. Dhruv Patel, Kishan Patel Exam Seat Number: 2128, 2141 has satisfactorily

completed his project work entitled Online Hotel Booking System as a partial fulfillment of the

requirements for 6thSemester –B.C.A. (Bachelor of Computer Application), during the academic Year

2022 - 2023.

Date: Principal
Dr. Snehal H. Mistry

Place: Vidyabharti Trust College of Business,


Computer-Science & Research.
Umrakh, Bardoli, Surat

PROJECT OF B.C.A.

Academic Year
Approved by:

(Examiners)
ACKNOWLEDGEMENT

It gives us great pleasure in presenting this project report titled “Online Hotel
Booking System” and we wish to express our immense gratitude to the people who
provided invaluable knowledge and support in the completion of this project.
Their guidance and motivation have helped in making this project a great success.

We express our gratitude to our project guide Krishna Mistry who provided
us all the guidance and encouragement throughout the project development. We
would also like to express our sincere gratitude to the respective Project coordinators.

We are eager and glad to express our gratitude to the Head of the BCA Dept.
Prof. Amit Patel for his approval of this project. We are also thankful to him for
providing us the needed assistance, detailed suggestions and encouragement to do
the project.

We would like to express our sincere gratitude to our respected principal Dr.
Snehal Mistry, vice principal Dr. Payal Mahida and the management of our
College for providing such an ideal atmosphere to build up this project with well-
equipped library with all the most necessary reference materials and up to date IT
Laboratories. We are extremely thankful to all staff and the management of the
college for providing us all the facilities and resources required.

Thanking All,

Dhruv Patel
Kishan Patel
ABSTRACT

An online hotel booking system is a website that enables users to book hotel
rooms via the internet. The system consists of a user interface, admin interface,
hotel interface, a database, and a payment gateway. The user interface allows users
to search for hotels based on various criteria, such as location, price, and
amenities. Users can view hotel details, including room types, availability, and
rates. They can also make reservations and manage their bookings. The database
stores hotel information, such as room availability, rates, and customer data. It
also stores transaction details, such as payments and refunds. The payment
gateway facilitates secure online transactions between the user and the hotel.
The system also includes features such as login confirmation emails, cancellation
booking, and customer support. It may also integrate with other travel services,
such as car rentals, flights, and tours. Overall, an online hotel booking system
provides a convenient and efficient way for users to search for and book hotel
rooms, while helping hotels manage their bookings and payments.
Index
Sr. No Topics Page no
1 Introduction
1.1 College Profile 2
1.2 Project Profile 2
2 Proposed System
2.1 Scope 3
2.2 Objective 3
2.3 Constraints
2.3.1 H/w Constraints 4
2.3.2.S/W Constraints 4
2.4 Advantages 5
2.5 Limitation 6
3 Environment Specification
3.1 Hardware & Software Requirements 7
3.2 Development Description 8
4 System Planning
4.1 Requirement Specification 13
4.2 Feasibility Study 14
4.3 Software Engineering Model 16
4.4 Risk Analysis 21
4.5 Project Schedule 23
4.5.1 Timeline Chart
5 System Analysis
5.1 UML Diagram
5.2.1 Use case Diagram 25
5.2.2 ER Diagram 31
5.2.3 Activity Diagram 32
6 Software Design
6.1 Database Design 41
6.2 Interface Design 49
7 Testing
7.1 Unit Testing 58
7.2 Integration Testing 58
8 Future Enhancement 59
9 Reference 60
Online Hotel Booking System

1. Introduction
An online hotel booking system is a software application that enables customers to
search, compare, and reserve hotel rooms online. It allows hotels to manage their
inventory, room rates, and reservations in real-time through a centralized platform.

The system typically includes a user-friendly interface that allows customers to


search for hotels by location, price, and amenities. Once a customer finds a hotel
that meets their needs, they can make a reservation and pay for their room online.
The system then sends a confirmation email to the customer with all the relevant
details of their reservation.

For hotels, an online booking system can streamline their operations by


automating many of the processes involved in managing reservations. The system
can also provide valuable data insights that help hotels optimize their pricing and
inventory management strategies.

Overall, an online hotel booking system is a convenient and efficient way for both
customers and hotels to manage reservations and ensure a smooth booking
experience

1|P a g e
Online Hotel Booking System
1.1 College Profile:

Project Title Online Hotel Booking System


College Name Vidyabharti Trust College of Business, Computer
Science & Research
Address Vidyabharti Campus, At & Po Umrakh Ta-Bardoli
Surat, Gujarat 394601, India
Email Id bbabca@vtcbcsr.edu.in
Contact Us (02622) 220581
Internal Guide Name Krishna Mistry

12.Project Profile
Project Title Online Hotel Booking System
Project Definition Online hotel reservations are a popular method for
booking hotel rooms. Travellers can book rooms on a
computer by using online security to protect their
privacy and financial information and by using several
online travel agents to compare prices and facilities at
different hotels.
Duration 3.5 Months
Front End PHP
Back End MySQL
Platform Visual Studio Code
Documentation Tool Microsoft Word
Operating System Microsoft Windows 10
Team Members Patel Dhruv , Patel Kishan
Project Guide Ms. Krishna Mistry

2|P a g e
Online Hotel Booking System
2. Proposed System

2.1. Scope

• Admin can add or enter the State, City, Hotel Type, Gallery,
Hotel Registration, and Hotel View. Hotel Booking need to
Approved by Hotel. Booking, Hotel Viewing, and Viewing
Profile can also be applied . Lastly the Customer can view my
booking.

• Customer can access the website anytime and anywhere,


as long as they have internet connection. This has made it
easier for Customer to view Hotel, view Room and
Booking at the spot if needed.

2.2. Objective
The Objective Is To increase efficiency and improve services
provided to the users through better application of technology in
daily operations. The project aims and objective that will be
achieved after completion of this project are discussed in this
subchapter.

3|P a g e
Online Hotel Booking System

2.3. Constraints

2.3.1. H/w Constraints

• Minimum Microsoft windows 7 required.


• Google chrome, Mozila Firefox any other browser required.
• MySQL database

2.3.2. S/W Constraints

• Band width 10 mbps minimum required.


• Processor 1 GB RAM and 100 GB HDD minimum required

4|P a g e
Online Hotel Booking System

2.4. Advantage

➢ Faster viewing and retrieval of data: -


With this new system data will be viewed faster and data will be
retrieved asper the requirements. No information about anybody will be
left out.

➢ Systematic work: -

The work done with this system will be systematically and there
will beno data loss. With this system work will be done efficiently.

➢ Less effort: -

With this system user will not get much stress on them effortless
workwill be done and less effort will be given on user.

➢ Faster and accurate reports and result will be easier to understand: -

Whenever user needs to take some important decisions with help


of therecords the user can take necessary steps, accurate and easy to
retrieve.

➢ Affordable Rooms:
Online Hotel Booking System provides affordable Room to
individuals and families who planning for a tour.

5|P a g e
Online Hotel Booking System

2.5. Limitation
• Security concerns:
An online hotel booking system stores sensitive information such as
customer data and credit card information. If the system is not secured
properly, it may be vulnerable to attacks, and customer data may be
compromised.

• Technical issues:
Online hotel booking systems can face technical issues such as server
downtime, system crashes, or bugs.

• Limited user access:


Some customers may not have access to the internet or may not be
comfortable using online booking systems. This can limit the number
of customers who can use the system, and may also require a backup
system to cater to such customers.

• Limited customization options:


Some online hotel booking systems may not provide enough
customization options for hotels, which may limit their ability to
showcase their unique features and attract customers.

6|P a g e
Online Hotel Booking System

3. Environment Specification

Implementation is used here to mean the process of converting a new or a


revised system design into an operational one. Implementation of a new
system to replace an existing one is usually difficult. If not properly planned,
there can be many problems. This phase is less creative than system design
and is primarily concerned with user training; the type of implementation that
is incorporated in the development of the project is implementation of a new
application to replace an existing one.

3.1 Hardware & Software Requirements

HARDWARE
Web Requirement Band width – 10 mbps (Minimum).

Development Processor - Intel(R) Core™ 2 Duo


Environment

Processor

RAM – 1 GB

HDD – 100 GB

Operating System – Windows XP

Client Configuration Internet – 512 Kbps (Minimum).

Internet Explorer 6.0 and above.

Web hosting Windows Server 2003 and above

7|P a g e
Online Hotel Booking System

Software

Front-End PHP

Back-End MY SQL

Scripting Language JavaScript (Js)

Other Technology HTML XAMP server

Browser Mozilla Firefox, Google Chrome

3.2 Development Description

 PHP
 MYSQL

PHP: Server Site Scripting Language

 PHP is a server-side scripting language designed for web


development but also used as a general-purpose
programming language. As of January 2013, PHP was
installed on more than 240 million websites (39% of those
sampled) and 2.1 million web servers. Originally created
by Rasmus Lerdorf in 1994, the reference implementation
of PHP (powered by the Zend Engine) is now produced
by The PHP Group. While PHP originally stood for
Personal Home Page, it now stands for PHP: Hypertext Pre-
processor, which is a recursive backronym.

8|P a g e
Online Hotel Booking System

 PHP code can be simply mixed with HTML code, or


it can be used in combination with various templating
engines and web frameworks. PHP code is usually
processed by a PHP interpreter, which is usually
implemented as a web server's native module or a Common
Gateway Interface (CGI) executable.

 After the PHP code is interpreted and executed, the


web server sends resulting output to its client, usually in
form of a part of the generated web page; for example,
PHP code can generate a web page's HTML code, an
image, or some other data. PHP has also evolved to include
a command-line interface (CLI) capability and can be used
in standalone graphical applications.

 Despite its popularity, no written specification or standard


existed for the PHP language until 2014, leaving the
canonical PHP interpreter as a de facto standard. Since
2014, there is ongoing work on creating a formal PHP
specification.

9|P a g e
Online Hotel Booking System

MySQL: The World's Most Popular Open Source Database

 Many of the applications that a Web developer wants to use


can be made easier by the use of a standardized database to
store, organize, and access information. MySQL is an Open
Source (GPL) Standard Query Language (SQL) database
thatis fast, reliable, easy to use, and suitable for applications
of any size. SQL is the ANSI-standard database query
language used by most databases (though all have their
nonstandard extensions).

 MySQL can easily be integrated into Perl programs


by using the Perl DBI (Database Independent interface)
module. DBI is an Application Program Interface (API)
that allows Perl to connect to and query a number of SQL
databases (among them MySQL, mSQL, PostgreSQL,
Oracle, Sybase, and Informix).

 MySQL is a powerful, sophisticated, and easy-to-use


SQL database program. Using Perl and DBI, one can easily
create programs to automate database management tasks.
With this knowledge, the prospective web designer should
be able to construct a database-based (for lack of a better
term) web site that is portable, sophisticated, easy to
manage, and professional appearing. We have examined
only a small subset of all that MySQL provides.
10 | P a g e
Online Hotel Booking System

3.3 ABOUT TOOLS

• Server-S i d e Tools:

Browser Internet Explorer 6.6 or Higher,


Mozilla Firefox 1.5 or Higher, Google
Chrome etc.

Operating System Dual core processor, intel Core i3

RAM 500 GB

• Side Tools:

Processor Windows 8, Windows 10

Hard Disk 500 GB

11 | P a g e
Online Hotel Booking System

4 System Planning

Requirement Specification

• Admin

• Login
• Change password
• State Master
• City Master
• Hotel Master
• Gallery
• Hotel Registration
• Hotel View

• Hotel
• Login
• View profile
• Change Password
• Hotel Room Entry
• View Hotel Room Entry
• Booking
• Customer Booking
• Room Cancel
• Payment
• Customer Payment
12 | P a g e
Online Hotel Booking System

• Customer

• Registration
• Login
• View Profile
• Change Password
• View Hotel
• View Hotel Rooms
• My Booking
• Payment
• Receipt

13 | P a g e
Online Hotel Booking System

4.2 Feasibility Study

✓ The system feasibility can be divided into the following sections:

➢ Technology and system feasibility:

The assessment is based on an outline design of system requirements


in terms of Input, Processes, Output, Fields, Programs, and Procedures.
This can be quantified in terms of volumes of data, trends, frequency of
updating, etc. in order to estimate whether the new system will perform
adequately or not.

➢ Economic feasibility:

Economic analysis is the most frequently used method for evaluating


the effectiveness of a new system. More commonly known as cost / benefit
analysis the procedure is to determine the benefits and savings that are
expected from a candidate system and compare them with cost. If a benefit
outweighs cost, then the decision is made to design and implement the
system.

➢ Legal feasibility:

Determines whether the proposed system conflicts with legal


requirements, e.g. a Data Processing system must comply with the
local Data Protection Acts

14 | P a g e
Online Hotel Booking System

Operational feasibility:-

Is a measure of how well a proposed system solves the problems,


and takes advantagesof the opportunities identified during scope definition
and how it satisfies the requirements identified in the requirements analysis
phase of system development.

➢ Schedule feasibility:-
A project will fail if it takes too long to be completed before it is useful.
Typically this means estimating how long the system will take to develop,
and if it can be completed in a given time period using some methods like
payback

➢ Resource feasibility:-

This involves questions such as how much time is available to


build the new system, when it can be built, whether it interferes
with normal business operations, type and amount of resources
required, dependencies.

15 | P a g e
Online Hotel Booking System

4.3 Software Engineering Model

❖ Spiral Model

The -spiral model combines the idea of iterative development with the
systematic, controlledaspects of the waterfall model.

Spiral model is a combination of iterative development process model


and sequential linear development model i.e. waterfall model with very
high emphasis on risk analysis.

It allows for incremental releases of the product, or incremental


refinement through eachiteration around the spiral.

❖ Spiral Model Design

The spiral model has four phases. A software project repeatedly passes
through these phasesin iterations called Spirals.

• Identification: This phase starts with gathering the business


requirements in the baseline spiral. In the subsequent spirals as the
product matures, identification of system requirements, subsystem
requirements and unit requirements are all done inthis phase.

This also includes understanding the system requirements by


continuous communication between the customer and the system
analyst. At the end of the spiral the product is deployed in the
identified market.

16 | P a g e
Online Hotel Booking System

• Design: Design phase starts with the conceptual design in the


baseline spiral and involves architectural design, logical design of
modules, physical product design and final design in the subsequent
spirals.
Construct or Build: Construct phase refers to production of the
actual software product at every spiral. In the baseline spiral when
the product is just thought of and the design is being developed.
Then in the subsequent spirals with higher clarity on requirements
and design details a working model of the software called build is
produced with a version number. These builds are sent to customer
for feedback.

• Evaluation and Risk Analysis: Risk Analysis includes identifying,


estimating, and monitoring technical feasibility and management
risks, such as schedule slippage and cost overrun. After testing the
build, at the end of first iteration, the customer evaluates the
software and provides feedback.

17 | P a g e
Online Hotel Booking System

• Following is a diagrammatic representation of spiral model


listing the activities ineach phase:

Based on the customer evaluation, software development process enters


into the next iteration and subsequently follows the linear approach to
implement the feedback suggested by the customer. The process of
iterations along the spiral continues throughout the life of the software.

❖ Spiral Model Application

• Spiral Model is very widely used in the software industry as it is in synch


with the natural development process of any product i.e. learning with
maturity and also involves minimum risk for the customer as well as the
18 | P a g e
Online Hotel Booking System

• development firms. Following are the When costs there is a budget


constraint and risk evaluation is important.

• For medium to high-risk projects.

• Long-term project commitment because of potential changes to


economic prioritiesas the requirements change with time.

• Customer is not sure of their requirements which is usually the case.

• Requirements are complex and need evaluation to get clarity.

• New product line which should be released in phases to get


enough customerfeedback.

Significant changes are expected in the product during the development


cycletypical uses of Spiral model:

❖ Spiral Model Pros and Cons

The advantage of spiral lifecycle model is that it allows for elements of


the product to be added in when they become available or known. This
assures that there is no conflict with previous requirements and design.

This method is consistent with approaches that have multiple software


builds and releases and allows for making an orderly transition to a
maintenance activity. Another positive aspect is that the spiral model
forces early user involvement in the system development effort.On the
other side, it takes very strict management to complete such products

19 | P a g e
Online Hotel Booking System

and there is a risk of running the spiral in indefinite loop. So the


discipline of change and the extent of taking change requests is very
important to develop and deploy the product successfully.
The following table lists out the pros and cons of Spiral SDLC Model:

Pros Cons

• Changing requirements can be • Management is more


accommodated. complex.

• Allows for extensive use of • End of project may not


prototypes beknown early.

• Requirements can be captured • Not suitable for small or


more accurately. low risk projects and
could be expensive for
• Users see the system early.
small projects.
• Development can be divided into
• Process is complex
smaller parts and more risky
parts can be developed earlier • Spiral may go
which helps better risk indefinitely.
management.
• Large number of
intermediate stages
requires excessive
documentation.

20 | P a g e
Online Hotel Booking System
3.2 Risk Analysis

❖ Schedule Risk:

➢ Project schedule get slip when project tasks and schedule release
risks are notaddressed properly.
➢ Schedule risks mainly affected on project and finally on company
economy and maylead to project failure.
➢ Schedules often slip due to following
reasons:Wrong time estimation

Resources are not tracked properly. All resources like staff,


systems, skills ofindividuals etc.

Failure to identify complex functionalities and time required


to develop thosefunctionalities.

Operational Risks:

➢ Risks of loss due to improper process implementation, failed


system or some externalevents risks.
➢ Causes of Operational risks:

o Failure to address priority conflicts Failure to resolve the


responsibilities
o Insufficient resources
o No proper subject training
o No resource planning
o No communication in team.

21 | P a g e
Online Hotel Booking System
Technical risks:

□ Technical risks generally leads to failure of functionality and


performance.
□ Causes of technical risks are:

o Continuous changing requirements


o No advanced technology available or the existing
technology is in initialstages.
o Product is complex to implement.
o Difficult project modules integration.

Programmatic Risks:
These are the external risks beyond the operational limits. These are all
uncertain

➢ risks are outside the control of the program.

➢ These external events can be:

o Running out of fund Market development.


o Changing customer product strategy and priority .
o Government rule changes.

22 | P a g e
Online Hotel Booking System
4.4.1 Timeline Chart

1-jan-2022 To 15-Apr-2022
Tasks
1-2 2-3 3 4-6 5-10 11-12 12 13-14 15

1.Introduction
Requirement Gathering

Analyze Gathered information

Determine Basic functionality

Determine Scope of System

Milestone Completed

2.Planning and Risk analysis

Analyze data for possible risk

Identify potential risk

Determines different modules

Milestone Completed

3.Designing
Design basic interface

Design database table

Design UI model

Milestone Completed

4.Coding and integrated modules

Define code logics

Implementation of logics

23 | P a g e
Online Hotel Booking System

Master modules

Transaction modules

Milestone Completed

5.Testing
Validate input data on control

Check accuracy of transaction

Test system with multiple users

Milestone Completed

24 | P a g e
Online Hotel Booking System

5 System Analysis
5.1 Diagram
5.1.1 Use case Diagram

▪ A use case diagram in Unified Modeling Language (UML) is a


type of behavioral diagram defined by and created from a use-case
analysis. Its purpose is to present a graphical overview of the
functionality provided by a system in terms of actors, their goals
(represented as use cases), and any dependencies between those
use cases.

▪ Steps required to understand use-case:

▪ What to write about?

▪ How much to write about it?

▪ How detailed to make our description?

▪ How to organize the description?

▪ The first step in writing a use case is to define the set of “actors”

25 | P a g e
Online Hotel Booking System

Symbol Symbol Name Symbol Description

Actor An actor is a person, group, or


system that interacts with the use
case.

Admin

The actor symbol represents a


textual explanation of the actor
that is created in a document
independently from a diagram.

Association A relationship between two


elements in the diagram.

Associations between actors and


use cases and represented by a
solid line.

System The system boundary separates a


System
Boundary system from actors and other
systems.

To add elements to a system,

26 | P a g e
Online Hotel Booking System

create them outside the


boundary, and then drag them
into the boundary.

27 | P a g e
Online Hotel Booking System

1. Admin

System

login

change password

change password

state master

admin

city master

hotel type

gallery

hotel registration

hotel view

logout

28 | P a g e
Online Hotel Booking System

2. Hotel

System

login

view profile

change password

hotel
hotel room entry

view hotel room entry

customer booking

room cancle

customer payment

recipt

logout

29 | P a g e
Online Hotel Booking System

3. Customer

System
registration

login

view profile

change password
customer

view hotel

view hotel room

my booking

payment

receipt

logout

30 | P a g e
Online Hotel Booking System

5.1.2 ER Diagram

31 | P a g e
Online Hotel Booking System

5.2.3 Activity Diagram

▪ Activity diagram is basically a flow chart to represent


the flow form one activity to another activity. The
activity can be described as an operation of the
system.

▪ Activity diagram use for to represent flow of function.

Symbol Symbol Name Symbol Description

• A black circle is the


standard notation for an
initial state before an
Black circle activity takes place.

• It can either stand alone


or you can use a note to
further elucidate the
starting point.

• The activity symbols are


the basic building blocks
Activity
of an activity diagram
and usually have a short

32 | P a g e
Online Hotel Booking System

description of the activity


State 1
they represent.

• A join combines two


concurrent activities back
into a flow where only
Join one activities is
happening at a time.

• Arrows represent the


direction flow of the flow
Arrows
chart.

• The arrow points in the


direction of progressing
activities.

• A fork splits one activity


flow into two concurrent
Fork splits
activities.

• A marker shaped like a


diamond is the standard

33 | P a g e
Online Hotel Booking System

Diamond symbol for a decision.

• There are always at least


two paths coming out of a
decision and the
condition text lets you
know which options are
mutually exclusive.

1. The black circle that looks


like a selected radio button is
Black circle
the UML symbol for the end
state of an activity.

2. As shown in two examples


above, notes can also be used
to explain an end state.

34 | P a g e
Online Hotel Booking System

• Login

enter login id

enter password

invalid login id or password

valid loginid password

next page

35 | P a g e
Online Hotel Booking System

• Hotel

enter hotel name

enter hotel address

enter hotel number

select your state name

enter email address

enter password

enter hotel logo

enter hotel map

Yes

hotel registration successfully

36 | P a g e
Online Hotel Booking System

• Customer

enter first name

enter middle name

enter last name

select gender

enter address

enter mobile no

select state name

select city name

enter your birthday date

enter email id

upload photo

successfully registration

37 | P a g e
Online Hotel Booking System

• Change Password

enter old passeord

enter new password

enter confirm password

Yes

password changed successfully

38 | P a g e
Online Hotel Booking System

• State Master

select sate

enter sate name

No

Yes

detail stored in database

successfully added

39 | P a g e
Online Hotel Booking System

• City Master

select city

No

Yes

detail stored in database

Successfully added

40 | P a g e
Online Hotel Booking System

6 System Analysis
6.1 Database Design

Table1 : admin_login
Attribute Data type Constraints Description
Name

Id int(11) Primary key It is auto


increment key

emial varchar(30) - Enter username

password varchar(30) - Enter password

Table2 : city_master

Attribute Name Data type Constraints Description

City_id int(11) Primary key Primary key

State_id Varchar(30) Foreign key Foreign key

City_name varchar(30) - -

41 | P a g e
Online Hotel Booking System

Table3 : hotel_gallery
Attribute Data type Constraints Description
Name

hg_id int(12) - It is auto increment


key

hg_gallery varchar(30) - Select image

Table4 : hotel_reg

Attribute Data type Constraints Description


Name

hid int(11) Primary key It is auto increment


key

hname Varchar(50) - Enter hotel


registration name

haddress Varchar(100) - Enter hotel

address

mobileno varchar(10) - Enter hotel


mobile number

hstateid int(11) - Select state


hcityid Int(11) - Select city
hemailid Varchar(30) - Enter email id

42 | P a g e
Online Hotel Booking System

hpassword Varchar(30) - Enter email id


password
hlogo Varchar(200) - Select hotel logo
hmap Varchar(200) - Enter hotel map
link

Table5 : hotel_type
Attribute Data type Constraints Description
Name

hid int(11) Primary key It is auto


increment key

htype Varchar(50) Foreign key Select type

Table6 :inquiry
Attribute Data type Constraints Description
Name

iid int(11) Primary key It is auto


increment key

Iname Varchar(50) - Enter name

Inumber Varchar(50) - Enter inquiry

43 | P a g e
Online Hotel Booking System

number

imassage varchar(60) - Enter inquiry

massage

Istatus Varchar(11) - Enter status

Table7 : cust_reg
Attribute Data type Constraints Description
Name

cust_id Int(20) Primary key It is auto increment


key

fname Varchar(50) - Enter customer first


Name
mname Varchar(50) - Enter customer
middle Name
lname Varchar(50) - Enter customer last
Name
gander Varchar(20) - Select gender
address Varchar(50) - Enter customer
address
mnumber Varchar(50) - Entre customer
Mobile number
state Varchar(20) - Select your state

44 | P a g e
Online Hotel Booking System

city Varchar(20) - Select your city


dob Date - Select your
birthday date
emial Varchar(50) - Enter customer
email id
password Varchar(50) - Enter email id
password
image Varchar(50) - Upload your image

Table8 : state_master
Attribute Data type Constraints Description
Name

stu_id int(11) Primary key It is auto increment


key

Fname varchar(30) - Enter first name


Mname varchar(30) - Enter middle name
Lname varchar(30) - Enter last name
Gender varchar(20) - Select gender
Address varchar(100) - Enter address
City varchar(20) - Enter city
Email varchar(30) - Enter e-mail
Dob Date - Enter birth date
Pwd varchar(30) - Enter password
department varchar(20) - Select department

45 | P a g e
Online Hotel Booking System

semester varchar(20) - Select semester


Image varchar(100) - Select image

Table9 : state_master

Attribute Data type Constraints Description


Name

state_id int(30) Primary key It is auto increment


key

state_name Varchar(50) - Enter state name

Table10 : cust_booking

Attribute Data Type Constraints Description

Name

Bookingid Int(11) Primary key It is auto


increment key

Roomid Int(11) - It Stores Room


Id

Cname Varchar(50) - Stores customer


name

caddress Varchar(100) - Store customer

46 | P a g e
Online Hotel Booking System

address

cemail Varchar(50) - Store customer

Email Id

ccontact Varchar(10) - Store customer

Contact number

cpincod Varchar(6) - Customer


pincod

bookdate Date - Shows booking


date

checkout Date - Shows checkout


date

payment Varchar(50) - Shows payment

Day Varchar(20) - Booing date

Hotelsatus Varchar(20) - Show hotel

Satus

Paymenttype Varchar(20) - Select payment


type

Paymentdate Varchar(20) - Shows payment


date

47 | P a g e
Online Hotel Booking System

Advpayment Varchar(20) - Shows advance

Payment

Rempayment Varchar(40) - Shows


remaining
payment

Paymentdate Dtae - Shows


remaining date

Paymentype Varchar(20) - Shows payment


type

48 | P a g e
Online Hotel Booking System

6.2 Interface Design sitemap followed with page snapshots

• USER SIDE
• Home Page:

49 | P a g e
Online Hotel Booking System

• About Page:

50 | P a g e
Online Hotel Booking System

• Hotel Page:

• Our Room:

51 | P a g e
Online Hotel Booking System

• Gallery Page:

• Contact Us:

52 | P a g e
Online Hotel Booking System

• Login page:

• ADMIN SIDE
Admin login page

53 | P a g e
Online Hotel Booking System

• Hotel rejistration

• HOTEL SIDE
Room entry:-

54 | P a g e
Online Hotel Booking System

Room entry view:-

Booking pending:-

55 | P a g e
Online Hotel Booking System

Accept booking:-

Cancel booking:-

56 | P a g e
Online Hotel Booking System

Checkout page:-

Remaining payment page:-

57 | P a g e
Online Hotel Booking System

7. Testing

7.1 Unit Testing


➢ Unit testing means the verification and validation of software. In unit
testing (is the smallest part of a module); programmer tests each units
of source code for fit to use.
➢ Unit testing focuses on verifying the effort on the smallest unit of
software-module.
➢ The local data structure is examined to ensure that the date stored
temporarily maintains its integrity during all steps in the algorithm’s
execution.
➢ Unit Tested area to ensure that the module operates properly at
boundaries established to limit.

7.2 Integration Testing


➢ Integration testing takes input as module that means, it is nothing but
the set of unit tested module. It collects them in bigger aggregates and
implements tests explained in an integration test plan. Afterwards,
distribute as its outcomes to the integrated system which is prepared
for system testing.
➢ In the Integration testing (Modules) the data can be tested across an
interface.
➢ Conducting tests to uncover errors associated with interring while
integration testing is a technique for constructing a program structure.

58 | P a g e
Online Hotel Booking System

8. Future Enhancement

➢ We are trying to make system more easy to use.


➢ We are trying to make system as small as it would be accessed on mobile
also.
➢ Strong Security.
➢ We are trying to make payment gateway in future.

9. Glossary

As the system was totally new concept for us, so firstly we have made a
plan to thoroughly understand the manual system with regards to that we
will be able to develop an automated system.

Looking to the genuinely of the problem we thought of developing a


website where in one click, one can get access to various events outlets.
They can select the event of their choices from their college and can place
event online.

59 | P a g e
Online Hotel Booking System

10. Reference

❖ Bibliography: -
➢ Beginning PHP 5.3, Matt Doyle, Wrox Publication PHP MySQL
B.S SHAH PRAKASHAN
➢ Beginning PHP and MySQL, 4th Edition, Apress Publication

❖ Webography: -
➢ During the Development of Project, We have referred
following Websites.

• Web site Name:

1. http://www.php.net/
2. http://www.w3schools.com
3. http://www.tutorialspoint.com

60 | P a g e

You might also like