hotel room reservation system in php and mysql
Short Description
project documentation on hotel reservation system in php/mysql...
Description
1. INTRODUCTION 1.1ABOUT THE PROJECT Project Description: The resort management project will automate the manual and legacy operation of a resort or a hotel. The project will keep track of Guest details, Room Reservation, Room Booking, Finance and Reports. Modules: Room Description: This form consists of the following sub menus Room Entry Room Entry Update and Delete Room Entry :This form display the information roomno, roomrent, bookingtype and arrivaldate,deposit.If the room entered in the form is vacant them only we can allot that room. Room entry called another name room reservation.
Room Entry Update and Delete :Room entry Update means already reserve the room any more changes using these options. Then delete option used for booking code, Room number, cancel date, fine 1
levied,fine waived. We can select the rooms that are reserved, for cancellations. Room Booking This form display the information like Booking code, Booking name, Booking date, guest name, and check in date. if the room entered in the form is vacant then only we can reserve that room. Room Vacating This will form display the information like room number,check
out
date,
advance
amount,
balance
amount, total amount, guest phone number, address etc., also display the room vacating form. Reporting View There are only one report are available. That is like vacating are includes financial ,departure report and paymentreport are generated between booking dates to vacating dates.
2
2. SYSTEM ANALYSIS 2.1 EXISTING SYSTEM: The existing system is manual. It maintains huge
records
for
various departments. The book keeping procedure is tedious and is prompt to errors. Very careful handling is needed in manual systems. Even a very minute mistake may lead to imbalanced results. Manualprocessesresultsinwasteoftimeandenergy.In the earlier syste m the inventory report iscalculated manually. Whenever the accoun ting is to be performed. That information must be extracted from the
files
and
Concern person.
the
calculation
The
existing
will
have system
to check
by
the
leads
to
a
lotofproblems.Theexisting system consumed a lot of stationary cos t. Dailytransactions are maintained in journals. These journal entries are then posted on to the ledger accounts correspondingly. Disadvantages: 1. The map searching system is not located on the first pages. This would make it to be ignored. 2. There are only one room picture for a hotel. Providing different services must be the rule of every hotel, so providing pictures of any kind of rooms would help people to know the details. 3
2.2 PROPOSED SYSTEM: This project integrates all Operation processes in the computer to synergies the important resources of Material and Money. The department people can gather the needed information at their desk without any manual burdens. This project reduces manual burdens and automates the functions of various departments. In manual process, to decide the Room booking details, vacating details have to be verified each time. But with this project these process are automated and no manual checking is required. This project reports can be automatically generated. The processes of creating reports are manually very tedious which are made very easy and automatically through this project. The reports produced helps in making managementdecision easily. With this project, since all information about previous years is readily available, such reports can be produced within few seconds. Thus the project eliminates many difficulties saving a lot of time and energy, which could be used for some other constructive purpose towards the organization’s success. Advantages:
4
1. Less effort 2. Quick reference 3. Future enhancement
2.3 SYSTEM REQUIREMENT & SPECIFICATION 2.3.1. Hardware Requirements Processor
-
Intel Dual Core 3.0 GHZ
Ram Capacity
-
1 GB
Hard disk
-
80 Gb
Monitor
-
19’’ LCD Monitor
Keyboard
-
108 key keyboard
Mouse
-
Optical Mouse
2.3.2. Software Requirements Front end
-
PHP 5.5, HTML,CSS5
Back end
-
MySQL
Operating System
-
Windows XP Professional /Win 7
Browser
-
Firefox 18.5 / Chrome 22 above
2.3.3. About the Software PHP started out as a small open source project that evolved as more and more people found out how useful it was. RasmusLerdorf unleashed the first version of PHP way back in 1994. 5
• PHP is a recursive acronym for "PHP: Hypertext Preprocessor". • 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 as C Language.
Common uses of PHP: • PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them.
6
• PHP can handle forms, i.e. gather data from files, save data to a file, through 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.It can encrypt data.
Characteristics of PHP Five important characteristics make PHP's practical nature possible: • Simplicity • Efficiency • Security • Flexibility • Familiarity Instead of lots of commands to output HTML (as seen in C or Perl), PHP pages contain HTML with embedded code that does "something" (in this case, output "Hi, I'm a PHP script!"). The PHP code is enclosed in special start and end processing instructions that allow you to jump into and out of "PHP mode." What distinguishes PHP from something like client-side JavaScript is that the code is executed on the server, generating HTML which is then sent to the client. The client would receive the results of running that script, but would not
7
know what the underlying code was. You can even configure your web server to process all your HTML files with PHP, and then there's really no way that users can tell what you have up your sleeve. The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer. Don't be afraid reading the long list of PHP's features. You can jump in, in a short time, and start writing simple scripts in a few hours.
What can PHP do? PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies. But PHP can do much more. 1.Server-side scripting: This is the most traditional and main target field for PHP. You need three things to make this work. The PHP parser (CGI or server module), a web server and a web browser. You need to run the web server, with a connected PHP installation. You can access the PHP program output with a web browser, viewing the PHP page through the server. All these can run on your home machine if you are just experimenting with PHP programming. Command line scripting: You can make a PHP script to run it without any server or browser. You only need the PHP parser to use it this way. This type of usage is ideal for scripts regularly executed using cron (on *nix or Linux) or
8
Task Scheduler (on Windows). These scripts can also be used for simple text processing tasks. Writing desktop applications: PHP is probably not the very best language to create a desktop application with a graphical user interface, but if you know PHP very well, and would like to use some advanced PHP features in your client-side applications you can also use PHP-GTK to write such programs. You also have the ability to write cross-platform applications this way. PHP-GTK is an extension to PHP, not available in the main distribution. PHP can be used on all major operating systems, including Linux, many Unix variants (including HP-UX, Solaris and OpenBSD), Microsoft Windows, Mac OS X, RISC OS, and probably others. PHP has also support for most of the web servers today. This includes Apache, Microsoft Internet Information Server, Personal Web Server, Netscape and iPlanet servers, Oreilly Website Pro server, Caudium, Xitami, OmniHTTPd, and many others. For the majority of the servers, PHP has a module, for the others supporting the CGI standard, PHP can work as a CGI processor. One of the strongest and most significant features in PHP is its support for a wide range of databases. Writing a database-enabled web page is incredibly simple. The following databases are currently supported: Adabas D dBase 9
Empress FilePro (read-only) Hyperwave IBM DB2 Informix Ingres InterBase FrontBase mSQL Direct MS-SQL MySQL ODBC Oracle (OCI7 and OCI8) Ovrimos PostgreSQL SQLite Solid Sybase Velocis Unixdbm
Why use PHP-Nuke and not static HTML pages?
10
• Because managing large sites with only static HTML pages is dangerous for your health. • Because through the dynamic pages, users can interact (Forum, chat) • Because through the dynamic pages we can offer value added services (restricted areas, various services based on user classification...) • Because the information is more easily cataloged. • Because with a few PHP pages we recall a lot of information. • Because keeping the contents up-to-date does not demand particular technical expertise and can be managed by anyone (by Davis Batistes). • It is very intuitive and easy to learn (by Anonymous) • It is easy to modify by those who intend to personalize the program (By Arus) • It is easy to use by the lesser experts among us.
MySQL What is MySQL? MySQL is a fast, easy-to-use RDBMS used being used for many small and big businesses. MySQL is developed, marketed, and supported by Oracle. 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. 11
• 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, up to 50 million 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 8 million terabytes (TB). • MySQL is customizable. The open source GPL license allows programmers to modify the MySQL software to fit their own specific environments.
3. SYSTEM DESIGN
3.1. ARCHITECTURAL DESIGN
12
13
3.2. CONTEST LEVEL DIAGRAM
14
3.3. DATAFLOW DIAGRAM Data flow diagram (DFD) is a tool developed for he purpose of graphically representing t he system in order t make the classification of system requirements easy and identifying the major transformation that will become modules in system design. So, it is starting point of the design phase that functionally decomposes specifications down phase to the lowest level of details.
This diagram follows a top down approach.
As the
overview mode is exploded, lower level diagrams can be obtained that shows additional features. Each process in the data flows diagram can be exploded into yet more detailed data flow diagram. Data flow diagram is used to descried the actual process that makeup the system, the data stores and data flows. ADFD typically shows the minimum contents of the data stores. Each data stores well contain all the data elements the flow in and or f it. DFD shows the flow of the data within the system. It consists of a series of “bubbles”joined by “lines” The bubble represents data transformations and the line represents data flow in the system.
15
LEVEL 0:
16
LEVEL 1:
17
3.3. ER DIAGRAM
3.4. DATABASE DESIGN 18
Table name: customer_info Description: Stores the Customer details
Field Name
Datatype
Size
Constraints
Description
cid
Int
3
Primary Key
Customer id
Ctitle
Varchar
50
Not null
Customer Title
Fullname
Varchar
200
Not null
Customer Full Name
Phone
varchar
20
Not null
Customer Phone
Address
Varchar
20
Not null
Customer Address
Country
Varchar
20
Not null
Customer Country
Gender
Varchar
20
Not null
Customer Gender
Dateofbirth
Varchar
50
Not null
Customer date of birth
Email
Varchar
20
Not null
Customer Email
Username
Int
3
Not null
Customer Username
Password
Varchar
40
Not null
Customer Password
Table name: booking_info 19
Description: Stores the room booking details Field Name
Datatype
Size
Constraints
3(auto) Primary Key
Description
Id
int
cid
Int
3
Foreign Key
Customer id
Rid
Varchar
20
Foreign Key
Roomid
Foodorder
Varchar
20
Foreign Key
Customer food order
Duration
Varchar
40
Not null
Duration
Num of guests Varchar
20
Not null
Numberof guests
Startdate
Varchar
20
Not null
Startdate
Comments
Varchar
25
Not null
Comments
Totalprice
Varchar
15
Not null
Totalprice
Ispaid
Varchar
39
Not null
Ispaid
Paymenttype
Varchar
24
Not null
Paymenttype
Paymentdate
Varchar
34
Not null
Paymentdate
Table name:food_info 20
Booking id
Description: Stores the food order details Field Name
Datatype
Size
Constraints
3(auto) Primary key
Description
id
Int
bid
Varchar
30
Foreign Key Booking id
cid
Varchar
30
Foreign Key
Customer id
Rid
Varchar
30
Not null
Room id
Date
Varchar
30
Not null
Date
Persons
Varchar
50
Not null
Persons
price
Varchar
Not null
Price
10
Food id
Table name: restaurant_ info Description: Stores the restaurant name and id Field Name
Datatype
Size
Constraints
Description
id
Int
3(auto) Primary Key Restaurant id
name
Varchar
50
Not null
Table name: rooms_info Description: Stores the room details 21
Name of the Restaurant
Field Name
Datatype
Size
Constraints
Description
Id
Varchar
100
Primary Key Room id
Type
Varchar
50
Not null
Room Type
Price
Int
50
Not null
Price
Num_beds
Varchar
20
Not null
Number of Beds
Availability
Varchar
20
Not null
Availability
Roomfloor
Varchar
50
Not null
Roomfloor
Roomnum
Varchar
20
Not null
RoomNumber
Description
Varchar
20
Not null
Room Description
Table name: payment Description: Stores the payment details Field Name
Datatype
Size Constraints Not null
Description
Cardno
Varchar
20
Nameoncard
Varchar
30
Not null
Name on Card
Expiredmonth Varchar
20
Not null
Expiry month
Expiredyear
Varchar
20
Not null
Expiry date
Balance
Varchar
20
Not null
Balance
4. SAMPLE CODE Index.php
22
Card number
About
On the year 2003, Elizabeth Gasataya and Family have started a business. It was Gowri Sankar hotel, located at # 3 Rojas Street, Kabankalan City Negros Occidental Philippines 6111. It was well renovated with 14 air conditioned rooms, Hot and Cold Shower, Cable Television and WIFI area. 23
24
Contact
View My Saved Places in a larger map 25
No 54, D Gin Factory Road, Thoothukudi - 628002 Tel. no. (91)-461-2328877
26
List of Amenities
28
29
Company Mission Provide our guests a unique experience, through which they connect with the best in our company, and to offer top quality service to our entire guest and provided comfort abundance.
Company Vision Gowri Sankar Hotel is to provide best quality of services applying top quality Hotel and conference facilities, in order to fulfill the best way in the relevant needs of every guest. About
On the year 2003, Elizabeth Gasataya and Family have started a business. It was Gowri Sankar hotel, located at # 3 Rojas Street, Kabankalan City 30
Negros Occidental Philippines 6111. It was well renovated with 14 air conditioned rooms, Hot and Cold Shower, Cable Television and WIFI area. Featured Rooms
32
34
View more...
Comments