Professional Documents
Culture Documents
railway project
railway project
(2023-2024)
A Project Report on
ONLINE RAILWAY RESERVATION SYSTEM
A project report Submitted in partial fulfilment of the requirements for the award of
Degree of
DEPARTMENT OF BCA
Cambridge College
Bangalore-560036
DEPARTMENT OF BCA
CAMBRIDGE COLLEGE
Bangalor
CERTIFICATE
This is to certify that MANASABAI PB Of 6 SEM BCA has carried out the project Titled “ONLINE
RAILWAY REGISTRATION SYSTEM” under the guidance of Ms.Jansirani E ss and Submitted in partial
fulfilment of Bachelor of Computer Applications during academic year.
2023-2024
Date:
I MANASABAI PB hereby declare that the project work titled ONLINE RAILWAY REGISTRATION
SYSTEM is a Bonafide work carried out by me under the guidance of Ms.Jansirani E Assistant Professor,
Dept. of BCA.
MANASABAI PB(U19NQ21S0036)
ACKNOWLEDGEMENT
I would like to extend hearty thanks to my HOD, Ms.MEERA SATHISH for being a constant
support and encouragement to carry out the project successfully.
I would like to extend hearty thanks to my guide Ms.JANSIRANI E for her valuable
suggestions, guidance and support in the completion of this project.
I would like to thank all teaching and non-teaching staff who have directly and indirectly
supported in carrying out this project successfully.
I extend my sincere thanks to my parents, friends for their moral support provided in completion
of the project.
MANASABAI PB(U19NQ21S0036)
ABSTRACT
The Online Railway Reservation System (RRMS) is a comprehensive software solution designed to streamline
and optimize the process of booking train tickets and managing passenger information. With the ever-increasing
demand for efficient transportation services, especially in the railway sector, the RRMS offers a user-friendly
interface for both passengers and administrators, enhancing the overall experience of train travel.
The primary objective of the RRMS is to provide a seamless booking experience for passengers while ensuring
effective management of railway resources. Passengers can easily search for train routes, check seat availability,
and make reservations through the online platform. The system incorporates advanced algorithms to efficiently
handle multiple bookings simultaneously, minimizing wait times and ensuring smooth transactions.
Moreover, the RRMS facilitates the management of passenger data, including ticket information, personal
details, and travel preferences. Administrators can access a centralized database to track bookings, manage train
schedules, and analyze passenger trends. This data-driven approach enables railway authorities to make
informed decisions regarding capacity planning, resource allocation, and service improvement.
TABLE OF CONTENTS
Acknowledgement i
Abstract ii
List of Figures iii
List of Tables iv
Chapter 1: Introduction
1.1 About the Mini Project 1
1.2 About SQL 1-3
1.3 Scope and Application 3-4
1.4 Implementation of Architecture 5-8
Chapter 2: Literature Survey
2.1 Related Work 9
2.2 Problem Statement 9
2.3 Proposed Statement 9
2.4 Advantages and Disadvantages 10
Chapter 3: System Requirements and Specifications
3.1 Hardware Requirements 11
3.2 Software Requirements 11
3.3 Functional Requirements 11
Chapter 4: Design and Methodology
4.1 Architecture of the Proposed System 12
4.2 ER Diagram and Schema Diagram 13-14
Chapter 5: Tables and Implementation
5.1 Tables used in the project 15-16
5.2 Module Division 17
5.3 Algorithm 17-18
Chapter 6: Testing and Coding
6.1 Types of Testing 19-20
6.2 Coding 21-55
Chapter 7: Results and Discussions 56-64
Chapter 8: Conclusion 65
Bibliography 66
LIST OF FIGURES
LIST OF TABLES
INTRODUCTION
pg. 1
Online Railway Reservation system
PHP is a widely-used open-source scripting language primarily designed for web
development. Originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994,
PHP stands for "PHP: Hypertext Preprocessor" (originally "Personal Home Page").
Syntax: PHP syntax is similar to C, Java, and Perl. It is known for its simplicity and ease of
learning, especially for those who have experience in C-like languages.
Dynamic Web Pages: PHP is commonly used to create dynamic web pages, allowing
developers to generate content on the fly based on user input, database queries, or other
external data sources.
Integration: PHP can be seamlessly integrated with HTML, allowing developers to embed
PHP code directly into HTML pages for dynamic content generation.
Frameworks: There are several popular PHP frameworks like Laravel, Symfony, and
CodeIgniter, which provide developers with tools and structures to streamline the
development process.
Open Source: PHP is open source, meaning its source code is freely available and can be
modified and redistributed by anyone. This has contributed to its widespread adoption and
continuous improvement by the community.
pg. 2
Online Railway Reservation system
Cross-Platform: PHP runs on various platforms, including Windows, Linux, macOS, and
Unix-like systems, making it highly versatile for web development across different
environments.
Large Community: PHP has a large and active community of developers who contribute
to its development, provide support, and create extensive documentation and resources for
learning.
Usage: PHP powers a significant portion of the web, with popular websites like Facebook,
Wikipedia, WordPress, and many others built using PHP.
Overall, PHP is a powerful and flexible language for web development, offering a balance of
simplicity, functionality, and scalability for building a wide range of web applications and
services.
pg. 3
Online Railway Reservation system
Online Railway ticket reservation is very useful nowadays. This is very important to design a
good-working system software for ticket booking and related transactions. To design it, full-
track documentation of models (ER, DFD, Class, Use-case, Activity, Sequence) is required as
per as software development is concerned.
If a passenger wants to reserve ticket(s), firstly, he/she has to log in to the Railway system
with valid credentials. Then, the passenger has to provide his/her details with the date of the
journey, names of the passengers and their details, origin station details, destination station
details, and the class type of the required ticket(s).
The Railway Reservation System will provide the available Train-list, and Seat-availability,
via-details
pg. 4
Online Railway Reservation system
pg. 5
Online Railway Reservation system
3.DATA FLOW DIAGRAM: Data flow diagrams are used to graphically represent
the flow of data in a business information system. DFD describes the processes that are
involved in a system to transfer data from the input to the file storage and report generation
pg. 6
Online Railway Reservation system
pg. 7
Online Railway Reservation system
pg. 8
Online Railway Reservation system
LITERATURE REVIEW
2.1 Related works
Several related works have contributed significantly to the development and enhancement
of Railway Reservation Management Systems (RRMS). One notable area of research
focuses on improving the user experience and efficiency of ticket booking processes.
Various studies have explored the implementation of user-friendly interfaces, intuitive
search algorithms, and real-time availability updates to streamline the booking process
and enhance passenger satisfaction. Additionally, research efforts have been directed
towards integrating advanced technologies such as artificial intelligence and machine
learning to develop predictive models for demand forecasting and dynamic pricing
strategies, thereby optimizing resource utilization and revenue generation for railway
authorities.
pg. 9
Online Railway Reservation system
pg. 10
Online Railway Reservation system
pg. 11
Online Railway Reservation system
The architecture of a proposed Railway Reservation System involves the design and
organization of various components and layers that work together to provide the desired
functionalities efficiently and securely. The proposed architecture provides a structured
framework for building a scalable, secure, and efficient Railway Reservation System. Each
layer plays a specific role in delivering the desired functionalities while maintaining the
overall integrity and reliability of the system.
pg. 12
Online Railway Reservation system
pg. 13
Online Railway Reservation system
pg. 16
Online Railway Reservation system
pg. 17
Online Railway Reservation system
pg. 18
Online Railway Reservation system Tables and Implementation
5.3 Algorithm
Designing an algorithm for a Railway Reservation System involves defining the steps and
logic required to facilitate various functionalities such as ticket booking, cancellation, seat
allocation, etc. Here's a simplified algorithm outline for the ticket booking process:
Input: User details (passenger name, contact information, etc.).
• Journey details (source station, destination station, date, etc.).
• Train details (train number, class, etc.).
• Search for Trains:
• Query the database to find trains available for the specified journey date and
route.
• Display available trains along with their schedules and seat availability.
Select Train and Class:
• User selects a train and the desired class (e.g., Sleeper, AC, etc.).
Check Seat Availability: Verify if seats are available in the selected class. If seats are
available, proceed to the next step. Otherwise, inform the user and allow them to select
another train or class
pg. 19
Online Railway Reservation system
Book Ticket:
• Collect passenger details (name, age, gender, etc.).
• Generate a unique ticket ID.
• Update the database to reserve the selected seats for the passenger.
• Calculate the fare based on the selected class and number of passengers.
• Generate a booking confirmation with ticket details.
• Payment Processing:
• Collect payment information from the user (credit/debit card, net banking,
etc.).
• Process the payment securely.
• Update the database to mark the ticket as paid.
Ticket Confirmation: Display the confirmed ticket details to the user.
• Send a confirmation email/SMS to the user with ticket information.
Cancellation (Optional): If the user wishes to cancel the ticket:
• Collect the ticket ID or booking reference.
• Refund the amount as per the cancellation policy.
• Update the database to release the reserved seats.
• End: End the booking process.
This algorithm outlines the basic steps involved in the ticket booking process of a
Railway Reservation System. Depending on the system's requirements and complexity,
additional steps may be included, such as seat allocation, waiting list management,
integration with payment gateways, etc. Additionally, error handling and validation checks
should be implemented at each step to ensure the integrity and reliability of the system.
pg. 20
Online Railway Reservation system
TESTING
6.1 Types of Testing
System Testing is a critical element of software quality assurance and represents the
ultimate review of specification, design, and coding. The user tests the developed
system and changes are made according to their needs. The testing phase involves the
testing developed system using various kinds of data. Testing is vital to the success of
the system. System testing makes a logical assumption that if all the parts of the
system are correct, the goal will be successfully achieved. The railway reservation
system is subject to a variety of tests such as recover, security and usability tests. A
series of testing is performed for the proposed system before the system is ready for
the user acceptance testing. Implementation ends with formal tests. The test data are
very crucial to this process. They must be realistic and cover extreme conditions are
well. Ideally, vary alternative path through the program should be exercised at least
once beyond the test data. The system test must involve all the elements that compose
the system including program validation checking, files, and forms and triggers
procedures.
Testing Strategies
Following are few of the testing strategies used for the testing purpose:
• Unit testing.
• Validation testing.
• Output testing.
• User acceptance testing.
pg. 21
Online Railway Reservation system
Testing
Unit Testing it focuses effort on the smallest unit of software design of the module.
This is also known as “Module Testing”. The module is tested separately. This testing
was carried out during programming stage itself in this testing each module is found
to be working satisfactorily with regards to the expected output from the module.
Output Testing after performing the validation testing the next test is output testing of
the proposed system since no system could be useful if it does not produce the
required output in the specified format. Asking the user about the format required by
them tests the outputs generated or displayed by the system under consideration. Here,
the output format is considered in two ways. One on-screen and other is printed
format. The output format on the screen is found to be correct as the format was
designed in the system phase according to the user’s needs. Hence, output testing does
not result in any correction in the system.
User Acceptance Testing of a system is the key factory for the success of any system.
The system under consideration is tested for user acceptance by constantly keeping in
touch with the perspective system. Users at time of developing can make changes
wherever required. Taking various kinds of test data does the above tests. Preparation
of the test data places a vital role in system testing. After preparing the test data the
system
pg. 22
Online Railway Reservation system
Coding
Login
Email: admin@mail.com
Password: codeastro.com
pg. 23
Online Railway Reservation system
Employee login
else
{
#echo "<script>alert('Access Denied Please Check Your Credentials');</script>";
$error = "Access Denied Please Check Your Credentials";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<title>Online Railway Reservation System</title>
pg. 24
Online Railway Reservation system
<link rel="stylesheet" type="text/css" href="assets/lib/perfect-scrollbar/css/perfect-
scrollbar.css"/>
<link rel="stylesheet" type="text/css" href="assets/lib/material-design-icons/css/material-
design-iconic-font.min.css"/>
<link rel="stylesheet" href="assets/css/app.css" type="text/css"/>
<!--Trigger Sweet Alert-->
<?php if(isset($error)) {?>
<!--This code for injecting an alert-->
<script>
setTimeout(function ()
{
swal("Failed!","<?php echo $error;?>!","error");
},
100);
</script>
<?php } ?>
</head>
<body class="be-splash-screen">
<div class="be-wrapper be-login">
<div class="be-content">
<div class="main-content container-fluid">
<div class="splash-container">
<div class="card card-border-color card-border-color-success">
<div class="card-header"><img class="logo-img" src="assets/img/logo-xx.png"
alt="logo" width="{conf.logoWidth}" height="27"><span class="splash-description">Please
enter your user information.</span></div>
<div class="card-body">
<!--Login Form-->
<form method ="POST">
<div class="login-form ">
<div class="form-group">
<input class="form-control" name="emp_email" type="text"
placeholder="Email" autocomplete="off">
</div>
<div class="form-group">
<input class="form-control" name="emp_pwd" type="password"
placeholder="Password">
</div>
</div>
</form>
<!--End Login-->
</div>
</div>
<div class="splash-footer">Back <a href = "../index.php">Home</a></div>
<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
});
</script>
</body>
</html>
pg. 26
Online Railway Reservation system
Employee logout
<?php
session_start();
unset($_SESSION['emp_id']);
session_destroy();
header("Location: emp-login.php");
exit;
?>
pg. 27
Online Railway Reservation system
Employee Dashboard
<?php
session_start();
include('assets/inc/config.php');
include('assets/inc/checklogin.php');
check_login();
$aid=$_SESSION['emp_id'];
?>
<!DOCTYPE html>
<html lang="en">
<!--Head-->
<?php include("assets/inc/head.php");?>
<!--End Head-->
<body>
<!--Navbar-->
<?php include("assets/inc/navbar.php");?>
<!--End Nav Bar-->
<!--Sidebar-->
<?php include('assets/inc/sidebar.php');?>
<!--End Sidebar-->
<div class="be-content">
<div class="main-content container-fluid">
<div class="row">
<div class="col-12 col-lg-6 col-xl-3">
<div class="widget widget-tile">
<div class="chart sparkline"><i class="material-
icons">airline_seat_recline_normal</i></div>
<div class="data-info">
<?php
//code for summing up number of passengers
$result ="SELECT count(*) FROM orrs_passenger";
$stmt = $mysqli->prepare($result);
$stmt->execute();
$stmt->bind_result($pass);
$stmt->fetch();
$stmt->close();
?>
<div class="desc">Passengers</div>
<div class="value"><span class="indicator indicator-equal mdi mdi-chevron-
right"></span><span class="number" data-toggle="counter" data-end="<?php echo $pass;?
>">0</span>
pg. 28
Online Railway Reservation system
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 col-xl-3">
<div class="widget widget-tile">
<div class="chart sparkline"><i
class="material-icons">directions_subway</i></div>
<div class="data-info">
<?php
//code for summing up number of trains
$result ="SELECT count(*) FROM orrs_train";
$stmt = $mysqli->prepare($result);
$stmt->execute();
$stmt->bind_result($train);
$stmt->fetch();
$stmt->close();
?>
<div class="desc">Trains</div>
<div class="value"><span class="indicator indicator-positive mdi mdi-chevron-
right"></span><span class="number" data-toggle="counter" data-end="<?php echo $train;?
>">0</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="card card-table">
<div class="card-header">Trains
</div>
</div>
<div class="card-body">
<!--Start Table-->
<table class="table table-striped table-bordered table-hover table-fw-widget"
id="table1">
<thead class="thead-dark">
<tr>
<th>Train Number</th>
<th>Train</th>
<th>Route</th>
<th>Departure</th>
pg. 30
Online Railway Reservation system
<th>Arrival</th>
<th>Dep.Time</th>
<th>Total Passengers</th>
<th>Fare</th>
</tr>
</thead>
<tbody>
<?php
</div>
</div>
<div class="card-body">
pg. 31
Online Railway Reservation system
<!--Start Table-->
<table class="table table-striped table-bordered table-hover table-fw-widget"
id="table1">
<thead class="thead-dark">
<tr>
<th>#</th>
<th>Passenger</th>
<th>Address</th>
<th>Train Number</th>
<th>Train</th>
<th>Departure</th>
<th>Arrival</th>
<th>Fare</th>
</tr>
</thead>
<tbody>
<?php
$ret="SELECT * FROM orrs_train_tickets WHERE confirmation
='Approved'"; //sql code to get all details of booked trains.
$stmt= $mysqli->prepare($ret) ;
$stmt->execute() ;//ok
$res=$stmt->get_result();
$cnt=1;
while($row=$res->fetch_object())
{
?>
<tr class="odd gradeX even gradeC odd gradeA ">
</div>
pg. 32
Online Railway Reservation system
<!--footer-->
<?php include('assets/inc/footer.php');?>
<!--EndFooter-->
</div>
</div>
pg. 33
Online Railway Reservation system
<script src="assets/lib/datatables/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"
type="text/javascript"></script>
<script
src="assets/lib/datatables/datatables.net-responsive/js/dataTables.responsive.min.js"
type="text/javascript"></script>
<script
src="assets/lib/datatables/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"
type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
App.dashboard();
});
</script>
</body>
</html>
pg. 34
Online Railway Reservation system
Passenger login
else
{
#echo "<script>alert('Access Denied Please Check Your Credentials');</script>";
$error = "Access Denied Please Check Your Credentials";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<title>Online Railway Reservation System</title>
pg. 35
Online Railway Reservation system
<link rel="stylesheet" type="text/css" href="assets/lib/perfect-scrollbar/css/perfect-
scrollbar.css"/>
<link rel="stylesheet" type="text/css" href="assets/lib/material-design-icons/css/material-
design-iconic-font.min.css"/>
<link rel="stylesheet" href="assets/css/app.css" type="text/css"/>
<!--Trigger Sweet Alert-->
<?php if(isset($error)) {?>
<!--This code for injecting an alert-->
<script>
setTimeout(function ()
{
swal("Failed!","<?php echo $error;?>!","error");
},
100);
</script>
<?php } ?>
</head>
<body class="be-splash-screen">
<div class="be-wrapper be-login">
<div class="be-content">
<div class="main-content container-fluid">
<div class="splash-container">
<div class="card card-border-color card-border-color-success">
<div class="card-header"><img class="logo-img" src="assets/img/logo-xx.png"
alt="logo" width="{conf.logoWidth}" height="27"><span class="splash-description">Please
enter your user information.</span></div>
<div class="card-body">
<!--Login Form-->
<form method ="POST">
<div class="login-form ">
<div class="form-group">
<input class="form-control" name="pass_email" type="text"
placeholder="Email" autocomplete="off">
</div>
<div class="form-group">
<input class="form-control" name="pass_pwd" type="password"
placeholder="Password">
</div>
</div>
</form>
<!--End Login-->
</div>
</div>
<div class="splash-footer"><a href = "index.php">Home</a></div>
<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
});
</script>
</body>
</html>
pg. 37
Online Railway Reservation system
Passenger logout
<?php
session_start();
unset($_SESSION['pass_id']);
session_destroy();
header("Location: pass-login.php");
exit;
?>
pg. 38
Online Railway Reservation system
Passenger Dashboard
<?php
session_start();
include('assets/inc/config.php');
include('assets/inc/checklogin.php');
check_login();
$aid=$_SESSION['pass_id'];
?>
<!DOCTYPE html>
<html lang="en">
<!--Head-->
<?php include("assets/inc/head.php");?>
<!--End Head-->
<!--Log on to codeastro.com for more projects!-->
<body>
<!--Navbar-->
<?php include("assets/inc/navbar.php");?>
<!--End Nav Bar-->
<!--Sidebar-->
<?php include('assets/inc/sidebar.php');?>
<!--End Sidebar-->
<!--Log on to codeastro.com for more projects!-->
<div class="be-content">
<div class="main-content container-fluid">
<div class="row">
</div>
<div class="row">
<div class="col-sm-12">
<div class="card card-table">
<div class="card-header">Available Trains
</div>
</div>
<div class="card-body">
<!--Start Table-->
<table class="table table-striped table-bordered table-hover table-fw-widget"
id="table1">
<thead class="thead-dark">
<tr>
<th>Train Number</th>
<th>Train</th>
<th>Route</th>
<th>Departure</th>
<th>Arrival</th>
<th>Dep.Time</th>
<th>Total Seat</th>
<th>Fare</th>
</tr>
</thead>
<tbody>
pg. 40
Online Railway Reservation system
<?php
</div>
<script type="text/javascript">
$(document).ready(function(){
//-initialize the javascript
App.init();
App.dashboard();
});
</script>
pg. 42
Online Railway Reservation system
</body>
</html>
Bootstrap
/*!
* Beagle v1.7.1
* https://foxythemes.net
*
* Copyright (c) 2019 Foxy Themes
*/
/*! =======================================================
VERSION 10.0.0
========================================================= */
/*! =========================================================
* bootstrap-slider.js
*
* Maintainers:
* Kyle Kemp
* - Twitter: @seiyria
* - Github: seiyria
* Rohit Kalkur
* - Twitter: @Rovolutionary
* - Github: rovolution
*
* =========================================================
*
* bootstrap-slider is released under the MIT License
* Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
pg. 43
Online Railway Reservation system
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
* =========================================================
*/.slider{display:inline-block;vertical-align:middle;position:relative}.slider.slider-
horizontal{width:210px;height:20px}.slider.slider-horizontal .slider-
track{height:10px;width:100%;margin-top:-5px;top:50%;left:0}.slider.slider-
horizontal .slider-selection,.slider.slider-horizontal .slider-track-low,.slider.slider-
horizontal .slider-track-high{height:100%;top:0;bottom:0}.slider.slider-horizontal .slider-
tick,.slider.slider-horizontal .slider-handle{margin-left:-10px}.slider.slider-horizontal .slider-
tick.triangle,.slider.slider-horizontal .slider-handle.triangle{position:relative;top:50%;-ms-
transform:translateY(-50%);transform:translateY(-50%);border-width:0 10px 10px
10px;width:0;height:0;border-bottom-color:#2e6da4;margin-top:0}.slider.slider-
horizontal .slider-tick-container{white-
space:nowrap;position:absolute;top:0;left:0;width:100%}.slider.slider-horizontal .slider-tick-
label-container{white-space:nowrap;margin-top:20px}.slider.slider-horizontal .slider-tick-
label-container .slider-tick-label{padding-top:4px;display:inline-block;text-
align:center}.slider.slider-horizontal .tooltip{-ms-transform:translateX(-
50%);transform:translateX(-50%)}.slider.slider-horizontal.slider-rtl .slider-
track{left:initial;right:0}.slider.slider-horizontal.slider-rtl .slider-tick,.slider.slider-
horizontal.slider-rtl .slider-handle{margin-left:initial;margin-right:-10px}.slider.slider-
horizontal.slider-rtl .slider-tick-container{left:initial;right:0}.slider.slider-horizontal.slider-
rtl .tooltip{-ms-transform:translateX(50%);transform:translateX(50%)}.slider.slider-
vertical{height:210px;width:20px}.slider.slider-vertical .slider-
track{width:10px;height:100%;left:25%;top:0}.slider.slider-vertical .slider-
selection{width:100%;left:0;top:0;bottom:0}.slider.slider-vertical .slider-track-
low,.slider.slider-vertical .slider-track-high{width:100%;left:0;right:0}.slider.slider-
vertical .slider-tick,.slider.slider-vertical .slider-handle{margin-top:-10px}.slider.slider-
vertical .slider-tick.triangle,.slider.slider-vertical .slider-handle.triangle{border-width:10px 0
10px 10px;width:1px;height:1px;border-left-color:#2e6da4;border-right-
color:#2e6da4;margin-left:0;margin-right:0}.slider.slider-vertical .slider-tick-label-
container{white-space:nowrap}.slider.slider-vertical .slider-tick-label-container .slider-tick-
label{padding-left:4px}.slider.slider-vertical .tooltip{-ms-transform:translateY(-
50%);transform:translateY(-50%)}.slider.slider-vertical.slider-rtl .slider-
track{left:initial;right:25%}.slider.slider-vertical.slider-rtl .slider-
selection{left:initial;right:0}.slider.slider-vertical.slider-rtl .slider-tick.triangle,.slider.slider-
vertical.slider-rtl .slider-handle.triangle{border-width:10px 10px 10px 0}.slider.slider-
vertical.slider-rtl .slider-tick-label-container .slider-tick-label{padding-left:initial;padding-
right:4px}.slider.slider-disabled .slider-handle{background-image:-webkit-linear-
gradient(top,#dfdfdf 0,#bebebe 100%);background-image:-o-linear-gradient(top,#dfdfdf
0,#bebebe 100%);background-image:linear-gradient(to bottom,#dfdfdf 0,#bebebe
100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf',endColorstr='
#ffbebebe',GradientType=0)}.slider.slider-disabled .slider-track{background-image:-webkit-
pg. 44
Online Railway Reservation system
linear-gradient(top,#e5e5e5 0,#e9e9e9 100%);background-image:-o-linear-
gradient(top,#e5e5e5 0,#e9e9e9 100%);background-image:linear-gradient(to bottom,#e5e5e5
0,#e9e9e9 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5',endColorstr
='#ffe9e9e9',GradientType=0);cursor:not-allowed}.slider
input{display:none}.slider .tooltip.top{margin-top:-36px}.slider .tooltip-inner{white-
space:nowrap;max-width:none}.slider .hide{display:none}.slider-
track{position:absolute;cursor:pointer;background-image:-webkit-linear-gradient(top,#f5f5f5
0,#f9f9f9 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#f9f9f9
100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#f9f9f9 100%);background-
repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='
#fff9f9f9',GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-
shadow:inset 0 1px 2px rgba(0,0,0,0.1);border-radius:4px}.slider-
selection{position:absolute;background-image:-webkit-linear-gradient(top,#f9f9f9 0,#f5f5f5
100%);background-image:-o-linear-gradient(top,#f9f9f9 0,#f5f5f5 100%);background-
image:linear-gradient(to bottom,#f9f9f9 0,#f5f5f5 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9',endColorstr='
#fff5f5f5',GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-
shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-
sizing:border-box;box-sizing:border-box;border-radius:4px}.slider-selection.tick-slider-
selection{background-image:-webkit-linear-gradient(top,#8ac1ef 0,#82b3de
100%);background-image:-o-linear-gradient(top,#8ac1ef 0,#82b3de 100%);background-
image:linear-gradient(to bottom,#8ac1ef 0,#82b3de 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8ac1ef',endColorstr=
'#ff82b3de',GradientType=0)}.slider-track-low,.slider-track-
high{position:absolute;background:transparent;-webkit-box-sizing:border-box;-moz-box-
sizing:border-box;box-sizing:border-box;border-radius:4px}.slider-
handle{position:absolute;top:0;width:20px;height:20px;background-
color:#337ab7;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4
100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-
image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7',endColorstr
='#ff2e6da4',GradientType=0);filter:none;-webkit-box-shadow:inset 0 1px 0
rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0
rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);border:0 solid transparent}.slider-
handle.round{border-radius:50%}.slider-handle.triangle{background:transparent
none}.slider-handle.custom{background:transparent none}.slider-
handle.custom::before{line-height:20px;font-size:20px;content:'\
2605';color:#726204}.slider-tick{position:absolute;width:20px;height:20px;background-
image:-webkit-linear-gradient(top,#f9f9f9 0,#f5f5f5 100%);background-image:-o-linear-
gradient(top,#f9f9f9 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#f9f9f9
0,#f5f5f5 100%);background-repeat:repeat-
x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9',endColorstr='
#fff5f5f5',GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-
shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-
sizing:border-box;box-sizing:border-box;filter:none;opacity:.8;border:0 solid
transparent}.slider-tick.round{border-radius:50%}.slider-
pg. 45
Online Railway Reservation system
tick.triangle{background:transparent none}.slider-tick.custom{background:transparent
none}.slider-tick.custom::before{line-height:20px;font-size:20px;content:'\
2605';color:#726204}.slider-tick.in-selection{background-image:-webkit-
Database fail
--
-- Database: `orrsphp`
--
-- --------------------------------------------------------
--
-- Table structure for table `orrs_admin`
--
--
-- Dumping data for table `orrs_admin`
--
-- --------------------------------------------------------
--
-- Table structure for table `orrs_employee`
--
--
-- Dumping data for table `orrs_employee`
--
-- --------------------------------------------------------
--
-- Table structure for table `orrs_passenger`
--
pg. 47
Online Railway Reservation system
CREATE TABLE `orrs_passenger` (
`pass_id` int(20) NOT NULL,
`pass_fname` varchar(200) NOT NULL,
`pass_lname` varchar(200) NOT NULL,
`pass_phone` varchar(200) NOT NULL,
`pass_addr` varchar(200) NOT NULL,
`pass_email` varchar(200) NOT NULL,
`pass_pwd` varchar(200) NOT NULL,
`pass_dpic` varchar(200) NOT NULL,
`pass_uname` varchar(200) NOT NULL,
`pass_bday` varchar(200) NOT NULL,
`pass_bio` longtext NOT NULL,
`pass_train_number` varchar(200) NOT NULL,
`pass_train_name` varchar(200) NOT NULL,
`pass_dep_station` varchar(200) NOT NULL,
`pass_dep_time` varchar(200) NOT NULL,
`pass_arr_station` varchar(200) NOT NULL,
`pass_train_fare` varchar(200) NOT NULL,
`pass_fare_payment_code` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `orrs_passenger`
--
pg. 48
Online Railway Reservation system
(10, 'Dorothy', 'Garcia', '7458965555', '97 Euclid Avenue', 'garcia@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'dorothy', '', '', '', '', '', '', '', '',
''),
(11, 'Adele', 'Wilson', '7896547777', '28 Cook Hill Road', 'adelew@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'adele', '', '', '', '', '', '', '', '',
''),
(12, 'Martha', 'Meyer', '4570001569', '12 Eva Pearl Street', 'martha@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'martha', '', '', '', '', '', '', '', '',
''),
(13, 'Edna', 'Ashworth', '1475458500', '91 Timberbrook Lane', 'edna@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'edna', '', '', '', '', '', '', '', '', ''),
(14, 'Jody', 'Bennett', '7123650014', '60 Oral Lake Road', 'jody@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'jody', '', '', '', '', '', '', '', '', ''),
(15, 'Jerry', 'Campbell', '5478540000', '93 Sarah Drive', 'campbell@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'jerry', '', '', '', '', '', '', '', '', ''),
(16, 'Noelle', 'Ross', '3745698850', '41 Ray Court', 'ross@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'noelle', '', '', '', '', '', '', '', '',
''),
(17, 'William', 'Barnes', '6547778540', '31 Briarwood Road', 'wbarnes@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'wbarnes', '', '', '', '', '', '', '',
'', ''),
(18, 'Fred', 'Jacquez', '6478540000', '17 Peck Court', 'fredj@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'fred', '', '', '', '', '', '', '', '', ''),
(19, 'Larry', 'Clark', '7696965450', '39 Dawson Drive', 'larry@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'larry', '', '', '', '', '', '', '', '', ''),
(20, 'Liam', 'Moore', '4750001458', '114 Southcross Avenue', 'liamoore@mail.com',
'55c3b5386c486feb662a0785f340938f518d547f', 'defaultimg.jpg', 'liamoore', '', '', 'CA-778',
'Adirondack', 'Seattle', '6:00 AM', 'New York', '198', '100000789640');
-- --------------------------------------------------------
--
-- Table structure for table `orrs_passwordresets`
--
--
-- Dumping data for table `orrs_passwordresets`
--
-- --------------------------------------------------------
--
-- Table structure for table `orrs_train`
--
--
-- Dumping data for table `orrs_train`
--
-- --------------------------------------------------------
--
-- Table structure for table `orrs_train_tickets`
--
pg. 50
Online Railway Reservation system
--
-- Dumping data for table `orrs_train_tickets`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `orrs_admin`
--
ALTER TABLE `orrs_admin`
ADD PRIMARY KEY (`admin_id`);
--
-- Indexes for table `orrs_employee`
--
ALTER TABLE `orrs_employee`
ADD PRIMARY KEY (`emp_id`);
pg. 51
Online Railway Reservation system
--
-- Indexes for table `orrs_passenger`
--
ALTER TABLE `orrs_passenger`
ADD PRIMARY KEY (`pass_id`);
--
-- Indexes for table `orrs_passwordresets`
--
ALTER TABLE `orrs_passwordresets`
ADD PRIMARY KEY (`pwd_id`);
--
-- Indexes for table `orrs_train`
--
ALTER TABLE `orrs_train`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orrs_train_tickets`
--
ALTER TABLE `orrs_train_tickets`
ADD PRIMARY KEY (`ticket_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `orrs_admin`
--
ALTER TABLE `orrs_admin`
MODIFY `admin_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `orrs_employee`
--
ALTER TABLE `orrs_employee`
MODIFY `emp_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `orrs_passenger`
--
ALTER TABLE `orrs_passenger`
MODIFY `pass_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `orrs_passwordresets`
--
ALTER TABLE `orrs_passwordresets`
pg. 52
Online Railway Reservation system
MODIFY `pwd_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `orrs_train`
--
ALTER TABLE `orrs_train`
MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `orrs_train_tickets`
--
ALTER TABLE `orrs_train_tickets`
MODIFY `ticket_id` int(20) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=10;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
pg. 53
Online Railway Reservation system
Index
<!DOCTYPE HTML>
<!--
Online Railway Reservation System
martdevelopers254 | @MartinMbithi
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Online Railway Reservation System</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-
scalable=no" />
<link rel="stylesheet" href="includes/css/main.css" />
<noscript><link rel="stylesheet" href="includes/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
<section id="footer">
<div class="inner">
<h2 class="major">Get in touch</h2>
<ul class="contact">
<li class="icon solid fa-home">
Online Railway Reservation
System<br />
PHP Project<br />
</li>
<li class="icon solid fa-phone">(+254)
127-0000</li>
<li class="icon solid fa-envelope"><a
href="#">mail@orrs.com</a></li>
<li class="icon brands fa-twitter"><a
href="#">twitter.com/Orrs</a></li>
<li class="icon brands fa-facebook-
f"><a href="#">facebook.com/orrs</a></li>
<li class="icon brands fa-instagram"><a
href="#">instagram.com/orrs</a></li>
</ul>
<ul class="copyright">
pg. 55
Online Railway Reservation system
<li>© Online Railway Reservation
System.</li><li>Developed By: Martin Mbithi Nzilani</li>
</ul>
</div>
</section>
</div>
</body>
</html>
pg. 56
Online Railway Reservation system
pg. 57
Online Railway Reservation system
pg. 58
Online Railway Reservation system
pg. 59
Online Railway Reservation system
pg. 60
Online Railway Reservation system
pg. 62
Online Railway Reservation system
pg. 63
Online Railway Reservation system
pg. 64
Online Railway Reservation system
CONCLUSION
Railway reservation system we have stored all the information about the Trains scheduled
and the user booking tickets and even status of trains, seats etc. This data base is helpful for
the applications which facilitate passengers to book the train tickets and check the details of
trains and their status from their place itself it avoids inconveniences of going to railway
station for each and every query they get. We had considered the most important
requirements only, many more features and details cand be added to our project in order to
obtain even more user -friendly applications. These applications are already in progress and
in future they can be upgraded and may become part of amazing technology.
pg. 65
Online Railway Reservation system
18
BIBLIOGRAPHY
[1]. Fundamental of Database Systems by RamezElmasri and Shamkant B Navathe, Sixth
Edition, Addison Wesley, 2011.
[2]. Database System Concepts, Sixth Edition, Abraham Silberschatz, Henry F.Korth, S.
Sudarshan: Tata McGraw-Hill, 2010.
[3]. An Introduction to Database Systems by C.J. Date, A.Kannan, S.Swamynathan, 8th
Edition, Pearson Education, 2006.
[4]. https://www.w3schools.com/php/weblinks.
[5]. https://www.w3schools.com/mysql/weblinks.
pg. 66