AirLines Reservation System in WEB DEVELOPMENT PROJECT
AirLines Reservation System in WEB DEVELOPMENT PROJECT
for
Mini Project in Web Frameworks or Operating System (20CSE68)
on
<AIRLINE RESERVATION SYSTEM>
Submitted by
KIRAN B S
USN: 1NH20CS406, Sem-Sec: 6-C
BACHELOR OF ENGINEERING
in
Page | 1
CERTIFICATE
This is to certify that the mini project work titled
KIRAN B S
USN:1NH20CS406
DURING
EVEN SEMESTER 2021-2022
for
Course: Mini Project in Web Frameworks or Operating
System-20CSE68
1.
2.
Page | 2
ACKNOWLEDGEMENT
The satisfaction and euphoria that accompany the successful completion of any task would be
impossible without the mention of the people who made it possible, whose constant guidance and
encouragement crowned our efforts with success.
I have great pleasure in expressing gratitude to Dr. Mohan Manghnani, Chairman, New Horizon
Educational Institutions, for providing necessary infrastructure and creating good environment.
I take this opportunity to express my profound gratitude to Dr. Manjunatha, Principal, New
Horizon College of Engineering, for his constant support and encouragement.
I would like to thank Dr. Anandhi R J, Professor and Dean-Academics, NHCE, for her valuable
guidance.
I would also like to thank Dr. B. Rajalakshmi, Professor and HOD, Department of Computer
Science and Engineering, for her constant support.
Her / His valuable suggestions were the motivating factors in completing the work.
Kiran B S
USN: 1NH20CS406
Page | 3
ABSTARCT
Objective:
The main aim of this project is develop an Airlines Reservation System this system
can used to the 2 types 1.Econamic 2.Bussiness.
1.Problem Definition:
Here details about Now airline tickets booking for traveling in user use to
booking this portal and travelling in one state to another state and one country
to another country.
1. Existing System:
It is scripting language
It is very code complexity
There is server controls in asp
It Doesn’t Support language inter-operability
Airlines Booking tickets: In this details about booked tickets and tick-
ets booking in airline
Admin can update and delete purchase, sales and other details.
2. Users:
In this users can see the next upcoming flight different places go to the
dates , time and price ,cancel the tickets, finally print the tickets
Page | 4
CHAPTER 1
INTRODUCTION
1.1 PROBLEM DEFINITION
Here details about Now airline tickets booking for traveling in user
use to booking this portal and travelling in one state to another state
and one country to another country.
1.1.1 OBJECTIVES
Page | 5
1.2 REQUIREMENT SPECIFICATION
Hard Disk : User Choice (as long as dynamic memory allocation works)
This is a web-based application and does not require anything special in terms software
requirements we need a browser and vs-code IDE.
Page | 6
CHAPTER 2
FUNDAMENTALS OF HTML
The language uses tags to define what manipulation has to be done on the text.
Page | 7
2.1.1 FEATURES OF HTML
HTML uses predefined tags and elements which tell the browser how to properly
display the content. Remember to include closing tags. If omitted, the browser
applies the effect of the opening tag until the end of the page.
Page | 8
2.1.1.2 WHY LEARN HTML
The basic structure of an HTML page is laid out below. It contains the essential
building- block elements (i.e., doctype declaration, HTML, head, title, and body
elements) upon which all web pages are created.
Page | 9
CHAPTER 3
Like HTML, CSS is not a programming language. It's not a markup language either. CSS
is a style sheet language. CSS is what you use to selectively style HTML elements.
For example, this CSS selects paragraph text, setting the color to red:
Page | 10
The whole structure is called a ruleset. (The term ruleset is often referred to as just
rule.) Note the names of the individual parts:
• Selector: This is the HTML element name at the start of the ruleset. It defines
the element(s) to be styled (in this example, <p> elements). To style a different
element, change the selector.
• Declaration: This is a single rule like color: red;. It specifies which of the ele-
ment's properties you want to style.
• Properties: These are ways in which you can style an HTML element. (In this
example, color is a property of the <p> elements.) In CSS, you choose which
properties you want to affect in the rule.
Page | 11
3.2 WHAT IS JAVASCRIPT?
JavaScript was initially created to “make web pages alive”. The programs in this language
are called scripts. They can be written right in a web page’s HTML and run automatically
as the page loads. Scripts are provided and executed as plain text. They don’t need special
preparation or compilation to run.
In this aspect, JavaScript is very different from another language called Java. Today,
JavaScript can execute not only in the browser, but also on the server, or actually on any
device that has a special program called the JavaScript engine. The browser has an
embedded engine sometimes called a “JavaScript virtual machine”.
The terms above are good to remember because they are used in developer articles on the
internet. We’ll use them too. For instance, if “a feature X is supported by V8”, then it
probably works in Chrome, Opera and Edge.
• Add new HTML to the page, change the existing content, modify styles.
Page | 12
• React to user actions, run on mouse clicks, pointer movements, key presses.
• Send requests over the network to remote servers, download and upload files (so-
called AJAX and COMET technologies).
• Get and set cookies, ask questions to the visitor, show messages.
• Today, JavaScript has a unique position as the most widely-adopted browser lan-
guage, fully integrated with HTML/CSS.
• There are many languages that get “trans piled” to JavaScript and provide certain
features. It is recommended to take a look at them, at least briefly, after mastering
JavaScript.
Page | 13
INTRODUCTION TO PHP
PHP was created by Rasmus Lerdorf in 1994 but appeared in the market in 1995. PHP 7.4.0 is the latest
version of PHP, which was released on 28 November. Some important points nee to be noticed about PHP
are as followed
Page | 14
Why use PHP
PHP is a server-side scripting language, which is used to design the dynamic web
It handles dynamic content, database as well as session tracking for the website.
PHP supports several protocols such as HTTP, POP3, SNMP, LDAP, IMAP, and many more.
Using PHP language, you can control the user to access some pages of your website.
As PHP is easy to install and set up, this is the main reason why PHP is the best language
to learn.
PHP can handle the forms, such as - collect the data from users using forms, save it
PHP Features
PHP is very popular language because of its simplicity and open source.
Page | 15
Performance:
PHP script is executed much faster than those scripts which are written in other
languages such as JSP and ASP. PHP uses its own memory, so the server workload
and loading time is automatically reduced, which results in faster processing speed
Open Source:
PHP source code and software are freely available on the web. You can develop all the
versions of PHP according to your requirement without paying any cost. All its
Page | 16
Connect PHP to MySQL
What is MySQL?
MySQL is an open-source relational database management system (RDBMS). It is the most
popular database system used with PHP.
Structured Query Language (SQL). The data in a MySQL database are stored in tables that
consist of columns and rows.
MySQL is a database system that runs on a server. MySQL is ideal for both small and large
applications. MySQL is a very fast, reliable, and easy-to-use database system. It uses
standard SQL. MySQL compiles on a number of platforms.
How we can connect PHP to MySQL?
PHP 5 and later can work with a MySQL database using:
MySQLi extension (the ‘i’ is abbreviation for improved)
PDO (PHP Data Objects)
Which one should we use MySQLi or PDO?
Both MySQLi and PDO have their recompenses:
PDO will work with 12 different database systems, whereas MySQLi will only
work with MySQL databases.
So, if you have to shift your project to use alternative database, PDO makes the
process easy. You only have to change the connection string and a few queries.
With MySQLi, you will need to rewrite the complete code — queries included.
Both are object-oriented, but MySQLi also offers a procedural API.
In short, you can choose whichever you want if you want to stick to MySQL otherwise you
should go with PDO.
Connection to MySQL using MySQL
PHP provides mysql_connect() function to open a database connection.
This function takes a single parameter, which is a connection returned by the
mysql_connect() function.
You can disconnect from the MySQL database anytime using another PHP function
mysql_close().
There is also a procedural approach of MySQLi to establish a connection to MySQL
database from a PHP script.
Page | 17
CHAPTER 4
This mini project has ensured that the user has an interactive and explorable environment.
The interface is user friendly, simple to understand and has tried to ensure that there are
no bugs.
The project consists of a web-based environment which was developed using HTML CSS
bootstrap, and JavaScript. The goal was to make a smooth and responsive web application
which help me with my future ahead.
The project aims to make the life of the person by organizing all the projects done till
now, the services they can provide while working under/for some company, giving links
to all the certifications and also the resume. Using this web application, one can increase
their credibility rather than just showing their resume in company interviews.
The whole web application has been divided into sections namely:
• Header Section: Contains all headings such as Home, Services, Projects, About
and contact
• Hero Section: Contains a stylish, flowing and very well formatted sentence of the
name of the person.
• Service Section: Contains brief description of the services that could be provided
by the person.
• Projects Section: Contains projects (GitHub code links for every project) and Cer-
tification over the years.
• About Section: Contains brief description of the person and also a link to the re-
sume.
Page | 18
• Contact Section: Contains sub parts like Phone number, Email ID and Address in
order to contact the person.
Page | 19
4.3 ALGORITHM:
1. START
2. Create Sections using HTML and name file as index.html:
• Home Section
• Booked Tickets
• Check PNR
• Log in
• Sign up
• About Section
• Contact Section
3. Create CSS modules for each section, class and division in a separate file named
styles.css. Examples of some classes are:
• .container
• .section title
• font-awesome
• .about
o Aboutus,
o activate_jet_details
o activate_jet_details_form_handler
o add_flight_details
o add_flight_details_form_handler
o add_jet_details
o add_jet_details_form_handler
o add_ticket_details_form_handle
o admin_homepage
o admin_ticket_message
o admin_view_booked_tickets
o admin_view_booked_tickets_form_handler
o book_tickets
Page | 20
o book_tickets2
o cancel_booked_tickets
o cancel_booked_tickets_form_handler
o cancel_booked_tickets_success
o customer_homepage
o deactivate_jet_details
o deactivate_jet_details
o delete_flight_details
o delete_flight_details_form_handler
o flightcheck
o flightlist
o home_page
o login_handler
o login_page
o logout_handler
o new_user
o new_user_form_handler
o payment_details
o payment_details_form_handler
o pnr
o pnrall
o pnrcheck
o pnrcheckall
o ticket_success
o user_reg_success
o view_booked_tickets
o view_flights_form_handler
6. Finaly print the tickets
7. END
Page | 21
CHAPTER 5
FLOW CHART
MAIN PAGE
Page | 22
ADMIN SIDE
Page | 23
USER SIDE
Page | 24
IMPLEMENTATION
5.1 CREATING SECTIONS(HTML,CSS & PHP with MYSQL)
INDEX PAGE
Page | 25
ADMIN SIDE
Page | 26
ABOUT US
Page | 27
BOOK TICKETS
Page | 28
Page | 29
NEW USER FROM HANDLER
Page | 30
Page | 31
VIEW BOOKED TICKETS
Page | 32
Page | 33
Page | 34
PNR CHECK
Page | 35
Page | 36
Page | 37
CANCEL TICKETS
Page | 38
DELETE OPERATION
Page | 39
LOGOUT
Page | 40
CSS FILE
Page | 41
Page | 42
MYSQL PHP CONNECTION
Page | 43
Page | 44
Page | 45
Page | 46
Page | 47
Page | 48
CHAPTER 6
RESULT
HOME PAGE
Page | 49
ABOUT US PAGE INFORMATION
CONTACT US PAGE
Page | 50
ADMIN SIDE LOGIN
Page | 51
ADD AIRCRAFT DEATAILS
ACTIVATE JET ID
Page | 52
ADD FLIGHT SCHEDULE DETAILS
Page | 53
ADMIN VIEW LIST OF BOOKED TICKETS
Page | 54
DEACTIVATE AIRCRAFT ID
DEACTIVATE SUCCESSFULLY
Page | 55
FLIGHT SCHEDULE TO BE DELETED
Page | 56
CREATE NEW USER ACCOUNT
Page | 57
NEW USER LOGIN HOME PAGE
Page | 58
AVAILABLE FLIGHTS DETAILS
Page | 59
ADD PASSENGER DETAILS
PAYMENT METHED
Page | 60
FINALLY BOOKED SUCCESSFULLY COMPLETED
Page | 61
CHAPTER 7
CONCLUSION
The Airline reservation system is designed for users to reserve a seat, display
seat the system. A formula is included in the function to calculate the seats are
reserved. Pseudocode is written for some important codes. A flow charts are also
created for explaining the process of the Airline reservation system.
It reduces the scope of manual error and conveniently maintains any modifications,
cancellations in the reservations. It not only provides flight details but also but also
creates a platform to book tickets, cancels or modifies ticket timings or dates and
even informs about the number of people on board
One of the purposes of the projects is to let the user experience something
interesting and fun.
Page | 62
CHAPTER 8
REFERENCES
[1] https://www.javatpoint.com/
[2] https://www.youtube.com/
[3] https://www.geeksforgeeks.com/
[4] https://www.github.com/
[5] https://www.w3schools.com/
[6] https://www.tutorialspoint.com/
Page | 63