Airline Management System
Airline Management System
Submitted by
Shashank M - 1RN20IS145
Shashanka UN - 1RN20IS147
2022 – 2023
RNS INSTITUTE OF TECHNOLOGY
Channasandra, Dr.Vishnuvardhan Road, RR Nagar Post,
Bengaluru – 560098
CERTIFICATE
This is to certify that the Mini project report entitled AIRLINE MANAGEMENT SYSTEM
has been successfully completed by SHASHANK M bearing USN 1RN20IS145 and
SHASHANKA UN bearing USN 1RN20IS147, presently V semester students of RNS
Institute of Technology in partial fulfillment of the requirements as a part of the DBMS
Laboratory for the award of the degree Bachelor of Engineering in Information Science and
Engineering under Visvesvaraya Technological University, Belagavi during academic year
2022 – 2023. It is certified that all corrections/suggestions indicated for Internal Assessment
have been incorporated in the report deposited in the departmental library. The mini project
report has been approved as it satisfies the academic requirements as a part of DBMS
Laboratory for the said degree.
External Viva
1.
2.
ii
DECLARATION
Place: Bengaluru
Date:
SHASHANK M
[1RN20IS145]
SHASHANKA UN
[1RN20IS147]
iii
ABSTRACT
Airline Management System aims to automate the flight operations and ticketing / seat
booking and confirmation system of an Airline company. The software is providing options
for viewing different flights available within a different timing for a specific day. That
provide customers within facility to able to book ticket smoothly. The customers can modify
and able to cancel the ticket for any reason. That prepare within a role and policies. The
software should provide option for checking availability of the tickets. That is important for
the customers to get message if the ticket unavailable. That will be displayed into customers.
The customers should be noted when the change has been made or any further change.
Admin can add or delete flights and update flights informations like available seats and
updated time
and destination.
iv
ACKNOWLEDGEMENT
The fulfillment and rapture that go with the fruitful finishing of any assignment would
be inadequate without the specifying the people who made it conceivable, whose steady
direction and support delegated the endeavors with success.
We would like to express our thanks to our Principal Dr. M K Venkatesha for his
support and inspired us towards the attainment of knowledge.
We wish to place on record our words of gratitude to Dr. Suresh L, Professor and
Head of the Department, Information Science and Engineering, for being the enzyme and
master mind behind our Project work.
We would like to express our profound and cordial gratitude to our Laboratory
Incharge Dr. R Rajkumar, Associate Professor, Department of Information Science and
Engineering for his valuable guidance, constructive comments and continuous encouragement
throughout the Project work.
We would like to express our profound and cordial gratitude to our Guide Ms.Sunitha K,
Assistant Professor, Department of Information Science and Engineering for her valuable
guidance in preparing Project report.
We would like to thank all other teaching and non-teaching staff of Information
Science & Engineering who have directly or indirectly helped us to carry out the project
work.
And lastly, We would hereby acknowledge and thank our parents who have been a
source of inspiration and also instrumental in carrying out this Project work.
SHASHANK M(1RN20IS0145)
SHASHANKA UN(1RN20IS147)
v
TABLE OF CONTENTS
CERTIFICATE ii
DECLARATION iii
ABSTRACT iv
ACKNOWLEDGEMENT v
TABLE OF CONTENTS vi
1. INTRODUCTION 1
2. LITERATURE SURVEY 2
3. SYSTEM REQUIREMENTS 7
4. SYSTEM DESIGN 8
5. IMPLEMENTATION 10
6. SNAPSHOTS 15
7.1 Conclusion
REFERENCES 31
v
i
LIST OF FIGURES
v
ii
LIST OF TABLES
ER - Entity Relationship
Simple
Initially low-cost
2.2.2 Cons
Separated ownership
Unmanaged redundancy
o Multiple instances of the same data appeared throughout various files, systems, and
databases.
o Information updated in one place was not replicated to the other locations.
o Disk space was very expensive, and redundancy had a big impact on storage.
Data in consistency
o Redundant data stored in various locations was usually never stored the same way.
o Hiring data processors for each department was very expensive, and each position was
typically working on the same thing just for a different area.
Conceived in a relatively centralized era when software was deployed in static environments,
legacy database architectures fail to support an increasingly mobile world where applications
are accessed anytime, anywhere.
Today software users want consistent improvements in usability and expect SaaS vendors
to deliver new features and functionalities needed to achieve their business objectives.
However, legacy database technologies fall short. in serving the needs of todays distributed
and cloud environments for the following reasons:
For all of these reasons, traditional databases are unable to deliver results in a rapidly growing
environment where the workload is geographically distributed across heterogeneous
datacenters. Upgrading to a more distributed data model is costly and complicated and your
DBAs can’t just sit back and give up on this situation. Hence, due to these various reasons,
the downfall of the traditional system was inevitable.
A database management system (DBMS) refers to the technology for creating and managing
databases. Basically, a DBMS is a software tool to organize (create, retrieve, update and
manage) data in a database.
The main aim of a DBMS is to supply a way to store and retrieve database
information that is both convenient and efficient. By data, we mean known facts that can be
recorded and that have embedded meaning. Normally people use software such as DBASE IV
or V, Microsoft ACCESS, or EXCEL to store data in the form of database. A datum is a unit
of Data. Meaningful data combines to form Information. Hence, information is interpreted
data- data provided with semantics MS ACCESS is one of the most common examples of
database management software. Database systems are meant to handle large collection of
information Management of data involves both defining structures for storage of information
and providing mechanisms that can do the manipulation of those stored information.
Moreover, the database system must ensure the safety of the information stored, despite
system crash or attempts at unauthorized access.
A Database Management System has many advantages over the traditional file system used in
the earlier days, such as:
details of data representation and storage. DBMS can supply an abstract view of the data for
insulating application code from such facts.
Efficient data access: DBMS utilize a mixture of sophisticated concepts and techniques for
storing and retrieving data competently and this feature becomes important in cases where the
data is stored on external storage devices.
Data integrity and Security: If data is accessed through the DBMS , the DBMS can enforce
integrity constraint on the data
Data administration: When several users share the data, integrating the administration of
data can offer major improvements. Experienced professionals understand the nature of the
data being managed and can be responsible for organizing the data representation to reduce
redundancy and make the data to retrieve efficiently
Users: Users may be of any kind, such as data base administrators, system developers or
database users.
DBMS: Software that allows users to create and manipulate database access.
SYSTEM REQUIREMENTS
The main purpose of this document is to illustrate the requirements of the Project – Airline
Management System which is intended to help passengers at any part of the world to travel at
ease. The database of flights, its routes, available seats, and the passenger information is
maintained and managed effectively.
HTML5 is a markup language used for structuring and presenting content on the World Wide
Web. It is the fifth and current major version of the HTML standard. It was published in
October 2014 by the World Wide Web Consortium (W3C) to improve the language with
support for the latest multimedia, while keeping it both easily readable by humans and
consistently understood by computers and devices such as web browsers, parsers, etc.HTML5
is intended to subsume not only HTML 4, but also XHTML 1 and DOM Level 2HTML.
The APIs and Document Object Model (DOM) are now fundamental parts of the HTML5
specification and HTML5 also better defines the processing for, any invalid documents.
5.2 PHP
PHP is a servlet-side scripting language designed primarily for web development but also
used as a general-purpose programming language. Originally created by Rasmus L in I994,
the PHP reference implementation is now produced by The PHP Development Team. PHP
originally stood for Personal Home Page, but it now stands for the recursive acronym PHP:
Hypertext Pre-processor.
Common Gateway interface (CGI) executable. PHP code may also be executed with a
command line interface (CLI) and can be used to implement standalone graphical
applications.
The standard PHP interpreter, powered by the Zend Engine, is free software released under
the PHP License. PHP has been widely ported and can be deployed on most web servers on
almost every operating system and platform, free of charge.
The PHP language evolved without a written formal specification or standard until
2014, leaving the canonical PHP interpreter as a de facto standard. Since 2014 work has gone
on to create a formal PHP specification. PHP is a scripting language that helps people make
web pages more interactive by allowing them to do more things.
A website programmed with PHP can have pages that are password protected. A
website with no programming cannot do this without other complex things. Standard PHP file
extensions are :PHP, php3or, but a web server can be set up to use any extension.
Originally based upon relational algebra and tuple relational calculus, SQL consists of
a data definition language, data manipulation language, and data control language. Although
SQL is often described as, and to a great extent is, a declarative language (4GL), it also
includes procedural elements.
SQL became a standard of the American National Standards Institute (ANSI) in 1986
and of the International Organization for Standardization (ISO) in 1987. Since then, the
standard has been revised to include a larger set of features. Despite the existence of such
standards, most SQL code is not completely portable among different data base systems
without adjustments.
<?php
$server = "localhost";
$username = "root";
$password = "";
$database = "flight_management";
5.4.3 Login
<?php
session_start();
if($_SERVER["REQUEST_METHOD"] == "POST")
{
include 'connect.php';
$username=mysqli_real_escape_string($conn,$_POST["login_username"]);
$password=mysqli_real_escape_string($conn,$_POST["password"]);
$query = "SELECT * FROM login WHERE login_username='$username'";
$result = mysqli_query($conn, $query);
$count=mysqli_num_rows($result);
}
?>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
if($count==0){
echo ' <div class="alert alert-danger" role="alert" style="margin-top: 20px;
margin-bottom: 0px;">
<h5 style={color:red;} class="alert-heading"><b>Username does not
exist.</b></h5>
Dept of ISE, RNSIT 2022-23 Page 12
18CSL58: DBMS Mini Project Report AIRLINE MANAGEMENT SYSTEM
</div> ';
}
else{
$query = "SELECT * FROM login WHERE password='$password'";
$result = mysqli_query($conn, $query);
$count=mysqli_num_rows($result);
if($count==0){
echo ' <div class="alert alert-danger" role="alert" style="margin-top: 20px;
margin-bottom: 0px;">
<h5 style={color:red;} class="alert-heading"><b>Incorrect Password.</b></h5>
</div> ';
}
else{
$_SESSION['user'] = $username;
$query = "SELECT * FROM customer WHERE login_username='$username'";
$result = mysqli_query($conn, $query);
$countd=mysqli_num_rows($result);
if($countd!=0){
header("location: searchflights.php");
}
$query = "SELECT * FROM airline_coordinator WHERE
login_username='$username'";
$result = mysqli_query($conn, $query);
$countd=mysqli_num_rows($result);
if($countd!=0){
header("location: airline_details.php");
}
$query = "SELECT * FROM customer_Care_Agent WHERE
login_username='$username'";
$result = mysqli_query($conn, $query);
$countd=mysqli_num_rows($result);
if($countd!=0){
header("location: empenquiryanswer.php");
}
}
}
}
?>
5.4.7 Payment
<?php
session_start();
$s=$_SESSION['seats'];
$flightid=$_SESSION['flightid'];
include 'connect.php';
if($_SESSION['class']=="Economy"){
else if($_SESSION['class']=="Business"){
$result1=mysqli_query($conn, $price);
$pricerow=mysqli_fetch_row($result1);
$row = mysqli_fetch_row($result);
?>
6.7 Payment
6.8.1 Database
6.8.2(a) Airline
6.8.3(b) Login
6.8.4(a) Airline_coordinator
6.8.6(a) Manages
6.8.7(a) Passenger_info
6.8.8(a) Reference_flight_no
6.8.9(a) ticket
7.1 CONCLUSION
We have finally created our project for airline management . Our project can be used
during difficult times like Covid and we can book tickets in a faster and efficient way by
sitting just at our homes .
We have implemented all the DBMS topics by first creating an ER diagram with
properly showing the entities and its relationship with the entities and also considered all the
possible types of attributes such as multi valued and derived attributes and also has shown
relationships with weak and strong entities and the cardinalities for participation entities.
After creating our relation schema we have created tables in phpmyadmin and have
included all the attributes and constraints such as primary key, Foreign Key, null, not null
and unique .
We have implemented the following tables using MYSQL and PHP. We have
created different types of commands such as SELECT , INSERT , UPDATE , DELETE .We
have also implemented PL/SQL by creating procedures, functions and triggers
https://javatpoint.com
https://w3cschools.com
https://stackoverflow.com