hotel room reservation system in php and mysql

Embed Size (px)

DESCRIPTION

project documentation on hotel reservation system in php/mysql

Citation preview

1. INTRODUCTION

1.1 ABOUT THE PROJECTProject 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 thefollowing 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 levied,fine waived. We can select the rooms that are reserved, for cancellations. Room Booking ThisformdisplaytheinformationlikeBookingcode, 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 VacatingThis will form display the information like room number,check out date, advance amount, balance amount, total amount, guestphone number, address etc., also display the room vacating form. Reporting ViewThere are only one report areavailable. That is like vacating are includes financial ,departure report and paymentreport are generated between booking dates to vacating dates.

2. SYSTEM ANALYSIS2.1 EXISTING SYSTEM:Theexistingsystemismanual.Itmaintainshuge 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.Intheearliersystemtheinventoryreportiscalculatedmanually.Whenevertheaccountingistobeperformed. That information must be extracted from the files and the calculation will have tocheck by the Concernperson. The existing system leads to a lotofproblems.Theexistingsystemconsumedalotofstationarycost.Dailytransactions are maintained in journals. These journal entries are then posted on tothe 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.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 organizations success.Advantages:1. Less effort2. Quick reference3. Future enhancement

2.3 SYSTEM REQUIREMENT & SPECIFICATION2.3.1. Hardware RequirementsProcessor -Intel Dual Core 3.0 GHZRam Capacity -1 GBHard disk -80 GbMonitor -19 LCD MonitorKeyboard -108 key keyboardMouse -Optical Mouse 2.3.2. Software RequirementsFront end -PHP 5.5, HTML,CSS5Back end -MySQLOperating System-Windows XP Professional /Win 7Browser-Firefox 18.5 / Chrome 22 above

2.3.3. About the SoftwarePHP 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. 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. 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 PHPFive important characteristics make PHP's practical nature possible: Simplicity Efficiency Security Flexibility FamiliarityInstead 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 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 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 DdBaseEmpressFilePro (read-only)HyperwaveIBM DB2InformixIngresInterBaseFrontBasemSQLDirect MS-SQLMySQLODBCOracle (OCI7 and OCI8)OvrimosPostgreSQLSQLiteSolidSybaseVelocisUnixdbm

Why use PHP-Nuke and not static HTML pages? 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. MySQLWhat 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. 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

Hotel Room BookingRoom ReservationPaymentReportUserRoom ReservationAllot the RoomAdminChecking RoomPaymentModeComment

3.2. CONTEST LEVEL DIAGRAM

3.3. DATAFLOW DIAGRAMData 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 bubblesjoined by lines The bubble represents data transformations and the line represents data flow in the system.

LEVEL 0:

LEVEL 1:

3.3. ER DIAGRAM

3.4. DATABASE DESIGN

Table name: customer_info

Description: Stores the Customer details

Field NameDatatypeSizeConstraintsDescription

cidInt3Primary KeyCustomer id

CtitleVarchar50Not nullCustomer Title

FullnameVarchar200Not nullCustomer Full Name

Phonevarchar20Not nullCustomer Phone

AddressVarchar20Not nullCustomer Address

CountryVarchar20Not nullCustomer Country

GenderVarchar20Not nullCustomer Gender

DateofbirthVarchar50Not nullCustomer date of birth

EmailVarchar20Not nullCustomer Email

UsernameInt3Not nullCustomer Username

PasswordVarchar40Not nullCustomer Password

Table name: booking_infoDescription: Stores the room booking detailsField NameDatatypeSizeConstraintsDescription

Idint3(auto)Primary KeyBooking id

cidInt3Foreign KeyCustomer id

RidVarchar20Foreign KeyRoomid

FoodorderVarchar20Foreign KeyCustomer food order

DurationVarchar40Not nullDuration

Num of guestsVarchar20Not nullNumberof guests

StartdateVarchar20Not nullStartdate

CommentsVarchar25Not nullComments

TotalpriceVarchar15Not nullTotalprice

IspaidVarchar39Not nullIspaid

PaymenttypeVarchar24Not nullPaymenttype

PaymentdateVarchar34Not nullPaymentdate

Table name:food_infoDescription: Stores the food order detailsField NameDatatypeSizeConstraintsDescription

idInt3(auto)Primary keyFood id

bidVarchar30Foreign KeyBooking id

cidVarchar30Foreign KeyCustomer id

RidVarchar30Not nullRoom id

DateVarchar30Not nullDate

PersonsVarchar 50Not nullPersons

priceVarchar10Not nullPrice

Table name: restaurant_ infoDescription: Stores the restaurant name and idField NameDatatypeSizeConstraintsDescription

idInt3(auto)Primary KeyRestaurant id

nameVarchar50Not nullName of the Restaurant

Table name: rooms_infoDescription: Stores the room details

Field NameDatatypeSizeConstraintsDescription

IdVarchar100Primary KeyRoom id

TypeVarchar50Not nullRoom Type

PriceInt50Not nullPrice

Num_bedsVarchar20Not nullNumber of Beds

AvailabilityVarchar20Not nullAvailability

RoomfloorVarchar50Not nullRoomfloor

RoomnumVarchar20Not nullRoomNumber

DescriptionVarchar20Not nullRoom Description

Table name: payment Description: Stores the payment detailsField NameDatatypeSizeConstraintsDescription

CardnoVarchar20Not nullCard number

NameoncardVarchar30 Not nullName on Card

ExpiredmonthVarchar20Not nullExpiry month

ExpiredyearVarchar20Not nullExpiry date

BalanceVarchar20Not nullBalance

4. SAMPLE CODEIndex.php

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.

Contact


View My Saved Places in a larger map

No 54, D Gin Factory Road,
Thoothukudi - 628002
Tel. no. (91)-461-2328877

List of Amenities

Company MissionProvide 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 VisionGowri Sankar Hotel is to provide best quality of services applying top qualityHotel 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 Negros Occidental Philippines 6111. It was well renovated with 14 air conditioned rooms, Hot and Cold Shower, Cable Television and WIFI area.





Featured Rooms