You are on page 1of 34

Page |1

OBJECTIVE & SCOPE OF THE PROJECT

OBJECTIVE:-

The system is capable of maintaining details of various customers, vendors, Products


and storing all the day to day transactions such as generation of shipment address bills,
handling customers and product receipts, updating of stores The central concept of the
application is to allow the customer to shop virtually using the Internet and allow customers
to online book of their desire from the server side (store).

SCOPE:-

The customers register with their details and get authentication for an authorized Login.

The software provides the following facilities to the customers:

 Facilitates easy book hotel online anywhere (conditions apply)


 Provides information about the products in categories
 Customers are provided with up to date information on the products available
 Customers can easily payment online

The objective of this software is to provide easy assistance to both the customer as well as the
merchant with proper database and information.
Page |2

BENEFIT OF THE PROJECT

An on-line web application system gives us the freedom to focus on our key result areas
such as;

Gone are the days when you have to make trips to the local travel agency to reserve
airfares or book a hotel for the night. Today, if you have a credit card handy and
access to the Internet, you can finalize your travel plans within minutes. Take
advantage of some of the benefits of online reservations to save both time and money,
to ensure a stress-free vacation.
 Convenience: One advantage of booking a hotel, flight or car rental online is the
convenience. Being able to make all your travel plans on the Internet means you can
do it any time of the day or night at home, or while you're on your lunch break at the
office. Customers on the go can even make reservations on their smartphones or
tablets. There's no need for lengthy phone calls or visits to a travel agency -- with just
a few minutes and a click of the mouse, you'll have all your plans finalized.
 BestPrices : You can shop around when making online reservations and choose the
best price. Many hotel and airline websites boast of having the lowest prices and even
offer Internet-only offers for travelers, which are deeply discounted. You might be
caught paying an extra fee to speak with customer service representatives if you make
travel arrangements over the phone, so another advantage of booking online is saving
money on all those extra hidden fees.. Instead of calling the hotel or airline and
waiting for a customer service representative to help you through the process, booking
online means you can do it wherever you have Internet access.
Page |3

CATEGORY OF THE PROJECT

 It is a Web application.

 It is multiuser.

Develop this project in this way because there may be situation a person has different
problems and need legal advice and lawyers of the different practice area. It is quite time
worthy and stressful. To solve this problem we develop such a website (Web Application)
that a person can smoothly find legal tips and lawyers through the internet in a worldwide. As
well as a lawyer can get opportunity to find his/her client without too much effort. It is
entirely an unpaid and legal network spotlighted on law, lawyers and clients.

We develop this project in a multiuser mode, so that we favor more than one member
at the same duration.
Page |4

THEORETICAL BACKGROUND

PHP:

PHP (Hypertext Pre-processor) is a powerful server-side scripting language for creating


dynamic and interactive websites.

PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's
ASP. PHP is perfectly suited for Web development and can be embedded directly into the
HTML code.

PHP is a general-purpose server-side scripting language originally designed for web


development to produce dynamic web pages. For this purpose, PHP code is embedded into
the HTML source document and interpreted by a web server with a PHP processor module,
which generates the web page document. It also has evolved to include a command-line
interface capability and can be used in standalonegraphical applications. PHP can be
deployed on most web servers and as a standalone interpreter, on almost every operating
system and platform free of charge. A competitor to Microsoft's Active Server Pages (ASP)
server-side script engine and similar languages, PHP is installed on more than 20 million
websites and 1 million web servers.

ADVANTAGES:

PHP application development offers the following benefits and advantages over application
development in other server side scripting languages:

• PHP is available under the open source license thereby making it a cost effective option.

• A speed the load time and improves browsing experience as processing happens on the
server.

• Major open source packages are written in PHP thereby enabling easy customization and
development.

• Compatible with all major operating systems, web servers and browsers.

• Includes a host of in-built features that simplify programming of common tasks.


Page |5

• Corporate websites

• Intranet applications

• Real estate portals

MYSQL:

MySQL is the world's most used relational database management system (RDBMS) that runs
as a server providing multi-user access to a number of databases. It is named after
developer Michael Widenius' daughter, My. The SQL phrase stands for Structured Query
Language.

The MySQL development project has made its source code available under the terms of
the GNU General Public License, as well as under a variety of proprietary agreements.
MySQL was owned and sponsored by a single for-profit firm, the Swedish company MySQL
AB, now owned by Oracle Corporation.

Free-software-open source projects that require a full-featured database management system


often use MySQL. MySQL is a popular choice of database for use in web applications.
MySQL is a popular choice of database for use in web applications, and is a central
component of the widely used LAMP open source web application software stack—LAMP is
an acronym for "Linux, Apache, MySQL, Perl/PHP/Python".

MySQL is an open source database management system and is used in some of the most
frequently visited websites on the Internet.

ADVANTAGES:

MySQL implements the following features, which some other RDBMS systems may not:

 Multiple storage engines, allowing one to choose the one that is most effective
for each table in the application (in MySQL 5.0, storage engines must be
compiled in; in MySQL 5.1, storage engines can be dynamically loaded at run
time):
Page |6

 Partner-developed storage engines (solidDB, NitroEDB, ScaleDB,


TokuDB, Infobright (formerly Brighthouse), Kickfire, XtraDB, IBM DB2).
InnoDB used to be a partner-developed storage engine, but with recent
acquisitions, Oracle now owns both MySQL core and InnoDB.

 Community-developed storage engines (memcache engine, http,


PBXT, Revision Engine).

 Custom storage engines

Commit grouping, gathering multiple transactions from multiple connections together to


increase the number of commits per second.
Page |7

DEFINITION OF THE PROBLEM

The project that we have undertaken aims to develop an Online Hotel Booking that is clean,
user-friendly and multi-functional. Development of this web application includes a number of
fields such that the user feels comfortable and the system appears as dynamic to the user. The
project “ONLINE HOTEL BOOKING SYSTEM” includes the following functionalities:

 Legal tips are provided so that anyone is able to understand his/her situation
before purchase product

 All queries, feedbacks and discussion forums are stored in the database.

 Customer 24 /7 hours contract in our site.

 Customer can view room details as necessary .

 The Administrators must pass through the login system to enter


Administrators page.

 All members’ data are stored in database.

 It can provide the various services for the customers.

 Moreover, administrator can add and delete the details of category and
products .
Page |8

SYSTEM REQUIREMENT SPECIFICATION

This SRS describes the software functional and nonfunctional requirements for release of the
Online Hotel Booking(OHB)This document is intended to be used by the members of the
project team that will implement and verify the correct functioning of the system. Unless
otherwise noted, all requirements specified here are high priority and committed for release

Project Scope and Product Description


The Online booking System will permit Product order on-line to be booked the specified
rooms. A detailed project description is available in the Online hotel booking System. A
customer can get the brief description of a particular room in the Hotel website.

Functional description

User Module:
 Home
 Services
 Gallery
 Restaurants
 Testimonials
 Booking
Page |9

DETAILS HARDWARE &SOFTWARE USED FOR DEVELOPMENT

 HARDWARE USED FOR DEVELOPMENT


PROCESSOR:
 Intel(R) Core(TM)2 DUO CPU (recommended)
RAM:
 3.00 GB
HARD DRIVE:
 3.8 GB of available space required for installing Macromedia Dreamweaver 8,
Adobe Photoshop, XAMPP Control Panel.

MODEM AND INTERNET CONNECTION

 SOFTWARE USED FOR DEVELOPMENT


OPERATING SYSTEM:

 WINDOWS 7 ULTIMATE

INTERNET BROWSER:

Most of the browsers can be used like:


 MOZILLA FIREFOX 2.0 or above
 GOOGLE CHROME

MACROMEDIA DREAMWEAVER8 as Web Designing Software

MySql Database System


XAMPP CONTROL PANEL
PHP for Server Side Scripting
P a g e | 10

JUSTIFICATION FOR PARTICULAR SOFTWARE

FRONT END :

PHP with Macromedia Dreamweaver8

PHP is a powerful server-side scripting language for creating dynamic and interactive
websites.

 PHP stands for PHP: Hypertext Preprocessor.


 PHP is a server-side scripting language, like ASP.
 PHP scripts are executed on the server.
 PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid,
PostgreSQL, Generic ODBC, etc.)
 PHP is open source software.

The PHP syntax is very similar to Perl and C. PHP is often used together with Apache (web
server) on various operating systems. It also supports ISAPI and can be used with Microsoft's
IIS on Windows. PHP runs on different platforms (Windows, Linux, Unix, etc.).It is
compatible with almost all servers used today (Apache, IIS, etc.).PHP is easy to learn and
runs efficiently on the server side.

Macromedia Dreamweaver8

Dreamweaver 8 is a easy to use software that allows you to create professional web Pages.

The design edition features of Dreamweaver 8 allow us to quickly add objects and
functionality to our pages, without having to program the HTML code manually.

It's possible to create tables, edit frames, work with layers, and insert JavaScript behaviors,
etc., in a very simple and visual way.

In addition, it includes complete FTP client software, allowing among other things to work
with visual maps of the Web sites, and updating the Web site in the server without leaving the
program.
P a g e | 11

In order to follow this course you can download the trial version of Dreamweaver from the
Macromedia's Page, this version expires after 30 days, but you can surely at some stage bring
yourself to buy the full version of this wonderful program.

If you don't know the basic HTML characteristics you can see them here.

BACK END :
MySQL

MySQL is the world's most used relational database management system (RDBMS) that
runs as a server providing multi-user access to a number of databases. It is named after
developer Michael Widenius' daughter, My. The SQL phrase stands for Structured Query
Language.

The MySQL development project has made its source code available under the terms of
the GNU General Public License, as well as under a variety of proprietary agreements.
MySQL was owned and sponsored by a single for-profit firm, the Swedish company MySQL
AB, now owned by Oracle Corporation.

Free-software-open source projects that require a full-featured database management system


often use MySQL. MySQL is a popular choice of database for use in web applications.

 MySQL is a database server


 MySQL is ideal for both small and large applications
 MySQL supports standard SQL
 MySQL compiles on a number of platforms
 MySQL is free to download and use
P a g e | 12

REQUIREMENT OF THE HARDWARE& SOFTWARE AT THE


USER END

1. HARDWARE USED FOR DEVELOPMENT

PROCESSOR:
 Intel(R) Core(TM)2 DUO CPU (recommended)
RAM:
 2.00GB or Higher
HARD DRIVE:
 250 GB or Higher
MODEM AND INTERNET CONNECTION

2. SOFTWARE USED FOR DEVELOPMENT

OPERATING SYSTEM (Any one of the following):

 Windows 7
 Windows 8
 Windows 10

INTERNET BROWSER(Any one of the following):

 MOZILLA FIREFOX 2.0 or above


 GOOGLE CHROME 18.0.1025.162 m or Higher
P a g e | 13

DETAILED LIFE CYCLE OF THE PROJECT

DATA FLOW DIAGRAM

A Data Flow Diagram (DFD) is a graphical representation of the "flow" of


data through an information system. A data flow diagram can also be used for the
visualization of data processing (structured design).

(a) Elements of a DFD:

There are 4 key elements in a Data Flow diagram; Processes, Data Flows,
Data Stores & External entities and each element is drawn differently.

Process entity:

The Process entity identifies a process taking place; it must have at least one
input and output. A process with no input is known as a "miracle process" and one with no
output is a "black hole process". Each process has the following:

 A Number
 A Name (verb phrase)
 A Description
 At least one input
 At least one output

Data flow entity:

The Data Flow entity identifies the flow of data between processes, data
stores & external entities. A data flow cannot connect an external entity to a data source; at
least one connection must be with a process. There are also "physical" flows, i.e. those that
use a physical medium. Each data flow has the following:

 A Name (Noun)
 A Description
 One or more connections to a process.
P a g e | 14

Data Store entity:

The Data Store entity identifies stores of data, both manual and electronic.
Each data store has the following:

 A Number
 A Name
 A Description
 One or more input data flows.
 One or more output data flows.

External entity:

The External Entity identifies external entities which interacts with the
system, usually clients but can be within the same organization. Each external entity has the
following:

 A Name (Noun)
 A Description

The different notations to draw data flow diagrams, defining different visual
representations for Processes, Data Stores, Dataflow, and External Entities are as
follows:

Process Data Store

Dataflow (Out)

External
Entity Dataflow (In)
P a g e | 15

Customer Request for Booking


Admin

Sending Special Request

Online Resort

Aproved or Reject the Booking Response a Special Request

Special Request System

Provide the Summary of a Customer Details


P a g e | 16

Customer

Book room Print the


Receipt

Booking id and
total amount
1 2
Receipt
Rooms Payments

Room_typeBooking_detailsPayment

Take Booking Details


P a g e | 17

Log In
1.
Admin
Log In

Log Out

2. 3

Add Delete
Rooms Rooms

Room_type
P a g e | 18

ENTITY RELATIONSHIP DIAGRAMDEFINITION:

An entity-relationship diagram is a data modeling technique that creates a graphical


representation of the entities, and the relationships between entities, within an information system.

The three main components of an ERD are:

 The entity is a person, object, place or event for which data is collected. The entity is
represented by a rectangle and labeled with a singular noun.
 The relationship is the interaction between the entities. A relationship may be represented
by a diamond shape, or more simply, by the line connecting the entities. In either case, verbs
are used to label the relationships.
 The cardinality defines the relationship between the entities in terms of numbers. An entity
may be optionalor mandatory. There are several different types of cardinality notation; crow's
foot notation, used here, is a common one. In crow's foot notation, a single bar indicates one,
a double bar indicates one and only one, a circle indicates zero, and a crow's foot indicates
many. The three main cardinal relationships are: one-to-one, expressed as 1:1; one-to-many,
expressed as 1: M; and many-to-many, expressed as M: N.

The Standard Shapes Used Are:

Entity Relationship

Connector Attribute

The steps involved in creating an ERD are:

 Identify the entities

 Determine all significant interactions

 Analyze the nature of the interactions

 Draw the ERD


P a g e | 19

ER DIAGRAM OF ONLINE HOTEL BOOKING SYSTEM:

NAME
Id

Contact customer

Address Email id

book Paid
Bookin_id

Pay id

Type id
Payment C_holder
Requires
No of Rooms
room No of
C_Number

Check in
Checkout
Total CVV
Amount
P a g e | 20

TABLE DESIGN

List of Tables

Table Name Purpose

1. Booking_details Store the customer details

2. room_type Store theRoom details

3.Payment Store the payment details

4.Admin Store the admin deatils

Database Tables :-

Name :Booking_Details

Description : Store the Booking details

Name :Room_type

Description : Store the room details


P a g e | 21

Name : Payment

Description : Store the payment details

Name : Admin

Description : Store the Admin details


P a g e | 22

SOFTWARE ENGINEERING PROCESS INVOLVED

Software Development Model:-

Prototype Model:

The goal of prototyping based development is to counter the first two limitations of the
waterfall model discussed earlier. The basic idea here is that instead of freezing the
requirements before a design or coding can proceed, a throwaway prototype is built to
understand the requirements. This prototype is developed based on the currently known
requirements. Development of the prototype obviously undergoes design, coding and testing.
But each of these phases is not done very formally or thoroughly. By using this prototype, the
client can get an "actual feel" of the system, since the interactions with prototype can enable
the client to better understand the requirements of the desired system.

Prototyping is an attractive idea for complicated and large systems for which there is
no manual process or existing system to help determining the requirements. In such situations
letting the client "plan" with the prototype provides invaluable and intangible inputs which
helps in determining the requirements for the system. It is also an effective method to
demonstrate the feasibility of a certain approach. This might be needed for novel systems
where it is not clear those constraints can be met or that algorithms can be developed to
implement the requirements. The process model of the prototyping approach is shown in the
figure below.

The basic reason for little common use of prototyping is the cost involved in this built-it-
twice approach. However, some argue that prototyping need not be very costly and can
P a g e | 23

actually reduce the overall development cost. The prototypes are usually not complete
systems and many of the details are not built in the prototype. The goal is to provide a system
with overall functionality. In addition, the cost of testing and writing detailed documents are
reduced. These factors help to reduce the cost of developing the prototype. On the other hand,
the experience of developing the prototype will very useful for developers when developing
the final system. This experience helps to reduce the cost of development of the final system
and results in a more reliable and better designed system.
P a g e | 24

CODING
DATABASE CONNECTION:
conn.php

<?php

mysql_connect("localhost","root","");

mysql_select_db("my_project");

?>

FOR USER BOOKING:


bookingprocess.php

<?php

include('conn.php');

session_start();

$nm=$_REQUEST["text_name"];

$adr=$_REQUEST["text_address"];

$ct=$_REQUEST["text_contact"];

$tyid=$_REQUEST["text_typeid"];

$rm=$_REQUEST["text_noofrooms"];

$ckin=$_REQUEST["text_checkin"];

$ckout=$_REQUEST["text_checkout"];

$eml=$_REQUEST["text_email"];

$sql="insert into
booking_details(name,address,contact,type_id,no_of_rooms,checkin,checkout,email_id)
values ('$nm','$adr','$ct',$tyid,'$rm',to_date('$ckin','mm-dd-yyyy'),to_date('$ckout','mm-dd-
yyyy'),'$eml')";

$ret= mysql_query($sql);

if($ret)

{
P a g e | 25

$sql2="select max(id) from booking_details";

$r2= mysql_query($sql2);

$row1=mysql_fetch_row($r2);

$id=$row1[0];

$_SESSION["ss_id"]=$id;

$sql3="select price from room_type where type_id=$tyid";

$r3= mysql_query($db,$sql3);

$row3=mysql_fetch_row($r3);

$pr=$row3[0];

$sql4="SELECT date_part('day',age(checkout, checkin)) FROM booking_details where


type_id=$tyid";

$r4= mysql_query($db,$sql4);

$row4=mysql_fetch_row($r4);

$days=$row4[0];

$total=$pr * ($days+1) * $rm;

$_SESSION["ss_total"]=$total;

echo "<script>alert('Booking Successfull');window.location='payment.php';</script>";

?>

FOR PAYMENT PROCESS


paymentprocess.php

<?php

include('conn.php');

session_start();

$tamt=$_SESSION["ss_total"];

$bid=$_SESSION["ss_id"];
P a g e | 26

$hld=$_REQUEST["text_holder"];

$cno=$_REQUEST["text_cardno"];

$exp=$_REQUEST["text_exp"];

$cvv=$_REQUEST["text_cvv"];

$sql="INSERT INTO payment(c_holder, c_no, c_cexp, cvv, total, booking_id) VALUES(


'$hld', '$cno', '$exp', '$cvv', $tamt, $bid)";

$ret = mysql_query($sql);

$row = mysql_fetch_row(mysql_query("SELECT * FROM booking_details WHERE id =


$bid"));

?>

FOR LOGIN PROCESS


loginprocess.php

<?php

include('conn.php');

session_start();

$lnm=$_REQUEST["text_login"];

$pass=$_REQUEST["text_password"];

$sql="SELECT * from admin where login='$lnm' and pswd='$pass';";

$result=mysql_query($sql);

if($row=mysql_fetch_row($result))

$nm=$row[1];

$_SESSION["ss_name"]=$nm;

echo "<script>window.location='admin.php';</script>";

else {

$_SESSION["sserror"]="err";
P a g e | 27

echo "<script>alert('Wrong username &


password');window.location='admin.php';</script>";

} ?>

FOR ADD ROOM PROCESS


Addroomprocess.php

<?php

include('conn.php');

$rnm=$_REQUEST["rname"];

$rpr=$_REQUEST["rprice"];

$rn=$_REQUEST["rno"];

$rbt=$_REQUEST["rtype"];

$sql="insert into room_type(name,price,no_of_rooms,bed_types)


values('$rnm',$rpr,'$rn','$rbt');";

$ret=mysql_query($sql);

if($ret)

echo"<script>alert('Add Room Successfully');window.location='admin.php';</script>";

?>

FOR DELETE ROOM PROCESS


Deleteroomprocess.php

<?php
include('conn.php');
$dr=$_REQUEST["droom"];
$sql="delete from room_type where Type_id=$dr;";
$ret=mysql_query($sql);
if($ret)
echo"<script>alert('Delete Room Successfully');window.location='admin.php';</script>";
?>
P a g e | 28

SNAPSHOTS OF THE PROJECT


Home Page

Services
P a g e | 29

Restaurant

Booking
P a g e | 30

Booking Details

ADMIN LOG IN
P a g e | 31

ADMIN HOME PAGE

ADD ROOMS
P a g e | 32

CONCLUSION

In the absence of real time user in context of this project, it was up to us, the developing team
to analyze the requirements for the website and in process, the following was detected:

1.) Increasing the security and confidentiality of each files and report by providing a security
module, a log-in form that will have two levels of access. The first will be the administrator
of the system and the customer for the second level of access. Each will have a unique
username and password thus making the system more secured not only for the company but
also to other users of the system. In addition only those who are registered members of the
system will have buying the product.

2.) The buttons and links are easy to find and very functional.

3.) On the process of evaluation the researcher used questionnaire method with the following
criteria namely: User-friendliness, Functionality, Accessibility, Reliability, and Security.
There were three questions that corresponds to each criteria and set with the corresponding
rating scale. The developed software was found to be secured, reliable, robust, maintainable,
and user-friendly.

4.) Based from the statistical treatment of the data, there was no significant difference in the
respondent’s assessment of the software in terms of Security, Reliability, Robustness,
Maintainability, and User-friendliness.
P a g e | 33

FUTURE SCOPE OF THE PROJECT

There are different types of modules in our project but these are not sufficient for this project.
If we think that our project will be very much accurate, fulfill customer satisfaction, run in
efficient way and all other facilities are available then we will include some modules to do
this.

The Following modules are included in the future in our project “ONLINE RESORT
BOOKING ”.

 We Increase Our Rooms.

 Add more Food &Beverage.

 Add more Staffs for Better Service.

 Develop the Android App.


P a g e | 34

BIBLIOGRAPHY
Book Reference
 Learning PHP, MySQL, and JavaScript.

 Beginning PHP and MySQL: From Novice to Professional, W. Jason Gilmore, Apress

 Murach's PHP and MySQL, Joel Murach, Mike Murach& Associates

 Dreamweaver 8 Bible, Joseph W. Lowery, Wiley

Website Reference

 www.php.net

 www.w3schools.com/php/

 www.freewebmasterhelp.com/tutorials/php

 http://phpacademy.org/

 http://www.tutorialized.com/tutorial/Simple-PHP-website-tutorial/43643

 http://www.freewebmasterhelp.com/tutorials/php

 www.mysqltutorial.org/

You might also like