Bus Full
Bus Full
Project Report by
Submitted to the
TAKSHASHILA UNIVERSITY
Ongur, Tindivanam.
NOVEMBER – 2024
TAKSHASHILA UNIVERSITY
FACULTY OF SCIENCES
This is to certify that the project entitled “Online Bus Reservation System” is a
Bonafide work of PRAKRITHA P, Register Number: TU6230102120017 and SIVAVISHNU
R, Register Number: TU6230102120024, who carried out the project under my supervision in
the partial fulfillment of the requirement for the degree of Master of Computer Applications
during the year 2024 - 2025. I further certify that the project work done by them has not
previously formed the basis for the award to the candidate or to any one else of any degree or any
similar title.
Place: Ongur
Date:
DECLARATION
We, PRAKRITHA P, SIVAVISHNU R hereby declare that our project entitled
“ONLINE BUS RESERVATION SYSTEM” is done during 2024-2025 for the award of
Master of Computer Applications under School of Computer Sciences of Takshashila
University as a part of our curriculum.
We further declare that this project or a part of this project has not been submitted
elsewhere for the award of any other degree.
SIVAVISHNU R
(Reg.No. TU6230102120024)
ACKNOWLEDGEMENT
The successful completion of any task would be incomplete without mentioning the
people who made it possible and whose constant guidance and encouragement to secured our
success. We take privilege to express few words to gratitude and respect to all those who helps us
in the completion of this project work.
We express our gratefulness to our most honourable Shri.M.Dhanasekaran, Chancellor,
Dr.Prof.Vivek Inder Kochhar, Vice-Chancellor, Dr.S.Senthil, Registrar, and
Dr.R.Subramanian, Dean – Academic Affairs, for their sincere endeavor in educating us in their
premier institution.
We express our sincere thanks to our respected Dr.S.Deepa, Dean, Faculty of Sciences,
for motivating in completing the project.
We owe a great sense of gratitude to Dr.G.Shobana, Associate Professor & School
Incharge, School of Computer Sciences, for timely and valuable suggestions during the this
project work.
We deem it a pleasant duty to place our sincere thanks and heartfelt gratitude to our
Guide Mr.C.Santhosh Kumar, Assistant Professor, School of Computer Sciences, who is the
source of inspiration and encouragement and provided unstinted guidance throughout this project
work.
We spontaneously hold in high esteem to all our faculty members, School of Computer
Sciences, for bringing out this project successfully with their enthusiastic guidance and making
all necessary arrangements.
At the outset we extend our deepest love and gratitude to our Parents and Family
Members who have built our carrier and backed me in our difficulties.
We like to thank all our Friends and Well Wishers who have helped us by their valuable
suggestions in completing this project successfully.
PRAKRITHA P
(Reg.No. TU6230102120017)
SIVAVISHNU R
(Reg.No. TU6230102120024)
ABSTRACT
Traveling is a large growing business across all countries. Bus reservation system deals with
maintenance of records of details of each passenger. It also includes maintenance of
information like schedule and details of each bus. We observed the working of the Bus
reservation system and after going through it, we get to know that there are many operations,
which they have to do manually. It takes a lot of time and causing many errors while data entry.
Due to this, sometimes a lot of problems occur and they were facing many disputes with
customers. To solve the above problem, and further maintaining records of passenger details,
seat availability, price per seat, bill generation and other things, we are offering this proposal of
computerized reservation system.
FRONTEND
⮚ HTML
⮚ CSS
⮚ JAVASCRIPT
BACKEND
⮚ PHP
DATABASE
⮚ MYSQL
USER MODULE
USER LOGIN
HOME PAGE
BOOKING DETAILS
1. Passenger Information
2. Trip Information
4. Payment Information
● Booking ID: Unique ID assigned to the reservation for tracking and support.
● Ticket ID: Specific identifier for the e-ticket generated after booking.
6. Additional Information
● Email/SMS Alerts: Booking details sent via email and SMS upon confirmation.
● Real-Time Updates: Notifications for schedule changes, delays, or cancellations.
● A prominent search bar is featured on the homepage, allowing users to book tickets
quickly. Users can enter their departure and destination cities, select a travel date, and
search for available buses. This simplifies the process of finding and booking trips,
saving users time.
Example:
ABSTRACT 1
1
INTRODUCTION
1.1 PROJECT AIMS AND OBJECTIVES 4
1.2 BACKGROUND OF PROJECT
1.3 OPERATION ENVIRONMENT
2 6
SYSTEM ANALYSIS
2.1 SOFTWARE
REQUIREMENT
SPECIFICATION
2.1 EXISTING VS PROPOSED
2.2 SOFTWARE TOOL USED
3 18
SYSTEM DESIGN
4 SYSTEM IMPLEMENTATION 22
5 31
SYSTEM TESTING
5.1 UNIT TESTING
5.2 INTEGRATION TESTING
CONCLUSION
6 47
REFERENCES
7 48
INTROUCTION
The Bus Reservation System is a digital platform designed to simplify and streamline the
process of booking bus tickets for travelers. It eliminates the need for manual reservations,
providing users with a convenient, fast, and secure way to plan their journeys. By integrating
real-time bus schedules, seat availability, and online payments, this system transforms the
traditional ticket booking process into a modern and user-friendly experience.
OBJECTIVES
User-Centric Features
● Provide an intuitive interface for users to search, book, and manage bus tickets easily. ●
Offer personalized experiences by incorporating user accounts and travel preferences.
● Enable real-time updates on bus schedules, seat availability, and booking status.
● Integrate notifications for trip reminders, schedule changes, and promotional offers.
● Allow users to view, modify, or cancel their bookings with clear policies.
● Provide detailed booking summaries, including boarding points, seat numbers, and
payment receipts.
● Design the system to accommodate high volumes of users and transactions without
downtime.
● Ensure data security and privacy through encryption and compliance with industry
standards.
The Bus Reservation System was conceived to address these challenges by leveraging
technology to simplify the booking process for users while improving operational efficiency
for bus service providers. The project aims to bridge the gap between travelers and bus
operators through a seamless, centralized platform that caters to both parties' needs.
DATABASE MY SQL
CHAPTER 2 SYSTEM
ANALYSIS
System analysis involves understanding the requirements, identifying the challenges, and
defining the functionalities of the Bus Reservation System. This phase ensures that the
developed system meets the needs of end-users and administrators effectively.
o Refund status.
3.2 Search and Filtering:
● Allow users and admins to filter and sort data (e.g., by date, route, operator, or fare).
● Web Interface: A responsive, user-friendly design that works across all devices (desktop,
tablet, and mobile) with intuitive navigation.
● Mobile Interface: A seamless mobile application (for iOS and Android) optimized for
user-friendly banking experiences, including easy access.
2. Database Optimization:
o Use normalized schema designs for reducing redundancy.
o Optimize complex queries using joins and aggregate
functions for batch processing.
3. Stress and Load Testing
● Conduct stress testing to identify the maximum user load the
system can handle before performance degrades.
● Perform load testing to simulate real-world scenarios and ensure
system stability under varying traffic conditions.
FRONT END
The whole Project is divided in two parts the front end and the back end.
The front end is designed using of html , Css, php, javascript.
2.3.1 HTML
i. HTML- HTML or Hyper Text Markup Language is the main
markup language for creating web pages and other information
that can be displayed in a web browser.HTML is written in the
form of HTML elements consisting of tags enclosed in angle
brackets (like <html>), within the web page content.
ii. HTML tags most commonly come in pairs like <h1> and </h1>,
although some tags represent empty elements and so are
unpaired, for example <img>. The first tag in a pair is the start
tag, and the second tag is the end tag (they are also called
opening tags and closing tags).
side scripts to interact with the user, control the browser, communicate
asynchronously, and alter the document content that is displayed. It is
also being used in server-side programming, game development and the
creation of desktop and mobile applications.
iii. JavaScript copies many names and naming conventions from Java, but
the two languages are otherwise unrelated and have very different
semantics. The key design principles within JavaScript are taken from the
Self and Scheme programming languages. It is a multi- paradigm
language, supporting object-oriented, imperative, and functional
programming styles.
2.3.4
PHP
iii. An HTML tag is a code element that defines the structure of a web page.
It is used to mark up content on a webpage to specify its meaningand
behaviour. Basic Structure: HTML tags are usually enclosed in angle
brackets (e.g., `<p>` for a paragraph, `<h1>` for a heading).Opening and
Closing Tags: Many HTML tags come in pairs: an opening tag `<tag>`
and a closing tag `</tag>`. For example, `<div>` opens a division, and
`</div>` closes it. Purpose: Tags specify how content should be displayed
(e.g., bold text with `<b>`, links with `<a>`, images `<img>`).
BACKEND
MySQL is one of the most popular and widely-used open-source relational
database management systems (RDBMS). It's known for its performance,
reliability, and ease of use. Here are three key points about MySQL:
Scalability: MySQL is highly scalable and can handle large amounts of data
and high traffic loads, making it suitable for both small projects and large
enterprise applications.
Performance: MySQL is known for its fast query performance and low
overhead, thanks to features like indexing, caching, and optimization.
Reliability: It provides robust data security features and backup solutions,
making it reliable for mission-critical applications.
CHAPTER 3
SYSTEM DESIGN
VARIOUSTABELSTOMAINTAIN
INFORMATION
⮚ Database Design
⮚ ADMIN DATABASE
⮚ USER DATABASE
⮚ BUSES DATABASE
⮚ TICKECT DETAILS
CHAPTER 4 SYSTEM
IMPLEMENTATION
4.2.8 PROTFOLIO
5. 1 UNIT TESTING
Unit testing for a Bus Reservation System focuses on testing individual units or
components of the system to ensure that each part functions correctly in isolation.
These tests verify that the logic behind booking tickets, viewing available buses,
and managing reservations works as expected.
Here's how you might approach unit testing for a Bus Reservation System,
including examples of test cases for different modules.
SOURCE CODING
Index:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Favicons -->
<link href="img/favicon.png" rel="icon">
<link href="img/apple-touch-icon.png" rel="apple-touch-icon">
</head>
<body id="body">
<!--==========================
Top Bar
============================-->
<section id="topbar" class="d-none d-lg-block">
<div class="container clearfix">
<div class="contact-info float-left">
<i class="fa fa-envelope-o"></i> <a
href="mailto:[email protected]">[email protected]</a>
<i class="fa fa-phone"></i> +91 8003649945
</div>
</div>
</section>
<!--==========================
Header
============================-->
<header id="header">
<div class="container">
<nav id="nav-menu-container">
<ul class="nav-menu">
<li class="menu-active"><a href="#body">Home</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="registration/admin.php">Admin</a></li>
<li><a href="registration/login.php">login</a></li>
</ul>
</nav><!-- #nav-menu-container -->
</div>
</header><!-- #header -->
<!--==========================
Intro Section
============================-->
<section id="intro">
<div class="intro-content">
<h2>Making <span>your Ride</span><br>happen!</h2>
<div>
<a href="profile.php" class="btn-get-started scrollto">Ticket Book</a> </div>
</div>
<main id="main">
<section id="portfolio" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Our Portfolio</h2>
<p>“The Impulse to Travel is one of the hopeful symptoms of life” ... </p> </div>
</div>
<div class="container-fluid">
<div class="row no-gutters">
<div class="col-lg-3 col-md-4">
<div class="portfolio-item wow fadeInUp">
<a href="img/port1.jpg" class="portfolio-popup">
<img src="img/port1.jpg" alt="" style="height:350px;">
<div class="portfolio-overlay">
<div class="portfolio-info"><h2 class="wow fadeInUp"></h2></div>
</div>
</a>
</div>
</div>
</div>
</div>
</section><!-- #portfolio -->
<section id="Partners" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Partners</h2>
<p>With there Help and Corporation we make your travel full of Joy and
Memorable</p>
</div>
</div>
</section><
<!--==========================
About Section
============================-->
<section id="about" class="wow fadeInUp">
<div class="container">
<div class="row">
<div class="col-lg-6 about-img">
<img src="img/port3.jpg" alt="">
</div>
<script src="lib/jquery/jquery-migrate.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/superfish/hoverIntent.js"></script>
<script src="lib/superfish/superfish.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<script src="lib/magnific-popup/magnific-popup.min.js"></script>
<script src="lib/sticky/sticky.js"></script>
</body>
</html>
Profile:
<?php session_start(); if(!isset($_SESSION['uid']))
{
header('location:registration/login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<body id="body">
<!--==========================
Top Bar
============================-->
<section id="topbar" class="d-none d-lg-block">
<div class="container clearfix">
<div class="contact-info float-left">
<i class="fa fa-envelope-o"></i> <a
href="mailto:[email protected]">[email protected]</a>
<i class="fa fa-phone"></i> +91 8003649945
</div>
</div>
</section>
<!--==========================
Header
============================-->
<header id="header">
<div class="container">
<!--==========================
Intro Section
============================-->
<section id="intro">
<div class="intro-content">
<h2>Making <span>your Ride</span><br>happen!</h2>
<div>
<a href="registration/bussearch.php" class="btn-get-started scrollto">Ticket Book</a>
</div>
</div>
<main id="main">
<section id="portfolio" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Our Portfolio</h2>
<p>“The Impulse to Travel is one of the hopeful symptoms of life” ... </p> </div>
</div>
<div class="container-fluid">
<div class="row no-gutters">
</div>
</div>
</section><!-- #portfolio -->
<section id="Partners" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Partners</h2>
<p>With there Help and Corporation we make your travel full of Joy and
Memorable</p>
</div>
</div>
</section><
<!--==========================
About Section
============================-->
<section id="about" class="wow fadeInUp">
<div class="container">
<div class="row">
<div class="col-lg-6 about-img">
<img src="img/port3.jpg" alt="">
</div>
</div>
</div>
</section><!-- #about -->
</main>
<!--==========================
Footer
============================-->
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong>Traveler</strong>. All Rights Reserved
</div>
<div class="credits">
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
</head>
<body id="body">
<div class="container">
<div id="results"></div>
<!-- - <div class='card'>
<div class='card-header bg-info'>
<h3 class='text-center'>Ticket Detail</h3>
</div>
<div class='card-body bg-dark'>
<div class='card bg-dark '>
<h2 class='text-center text-white'>Passenger Detail</h2><hr>
<div class='row'>
<div class='col-md-6'>
<h4 class=' text-white'>Passenger Name :</h4>
<h4 class='text-white'>Adhar Card No :</h4>
<h4 class='text-white'>Age :</h4>
<h4 class='text-white'>Email :</h4>
</div>
<div class='col-md-6'>
<h4 class=' text-white'>Passenger Name :</h4>
<h4 class='text-white'>Adhar Card No :</h4>
<h4 class='text-white'>Age :</h4>
<h4 class='text-white'>Email :</h4>
</div>
</div>
</div>
<div class='card bg-dark '>
<h2 class='text-center text-white'>Bus Detail</h2><hr>
<div class='row'>
<div class='col-md-6'>
<h4 class=' text-white'>Bus Name :</h4>
<h4 class='text-white'>Bus No :</h4>
<h4 class='text-white'>Time :</h4>
<h4 class='text-white'>From :</h4>
<h4 class='text-white'>To :</h4>
</div>
<div class='col-md-6'>
<h4 class=' text-white'>Passenger Name :</h4>
<h4 class='text-white'>Adhar Card No :</h4>
<h4 class='text-white'>Age :</h4>
<h4 class='text-white'>Email :</h4>
<h4 class='text-white'>Email :</h4>
</div>
</div>
</div>
<div class='card bg-dark '>
<h2 class='text-center text-white'>Ticket Detail</h2><hr>
<div class='row'>
<div class='col-md-6'>
<h4 class=' text-white'>Number Of Seat :</h4>
<h4 class='text-white'>Seat No :</h4>
<h4 class='text-white'>Status :</h4>
<h4 class='text-white'>Fare :</h4>
<h4 class='text-white'>Journey Date :</h4>
<h4 class='text-white'>Booking Date :</h4>
</div>
<div class='col-md-6'>
<h4 class=' text-white'>Passenger Name :</h4>
<h4 class='text-white'>Adhar Card No :</h4>
<h4 class='text-white'>Age :</h4>
<h4 class='text-white'>Email :</h4>
<h4 class='text-white'>Email :</h4>
<h4 class='text-white'>Email :</h4>
</div>
</div>
</div>
</div>
<div class='card-footer bg-info'>
<a href='profile.php' class='btn btn-outline-danger'>Home</a>
</div>
</div> >
</div>
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong>Traveler</strong>. All Rights Reserved
</div>
<div class="credits">
Admin:
<?php session_start(); if(!isset($_SESSION['aname']))
{
header('location:registration/admin.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
</head>
<body id="body">
<!--==========================
Top Bar
============================-->
<section id="topbar" class="d-none d-lg-block">
<div class="container clearfix">
<div class="contact-info float-left">
<i class="fa fa-envelope-o"></i> <a
href="mailto:[email protected]">[email protected]</a>
<i class="fa fa-phone"></i> +91 8003649945
</div>
</div>
</section>
<!--==========================
Header
============================-->
<header id="header">
<div class="container">
<nav id="nav-menu-container">
<ul class="nav-menu">
<li class="menu-active"><a href="#body">Home</a></li>
<li><a href="booking.php">Check Booking</a></li>
<li><a href="bookingdetail.php">Journey Date</a></li>
<!-- <li><a href="#"><?php echo $_SESSION['aname'];?></a></li> -->
<li><a href="registration/logout.php">logout</a></li>
</ul>
</nav><!-- #nav-menu-container -->
</div>
</header><!-- #header -->
<!--==========================
Intro Section
============================-->
<section id="intro">
<div class="intro-content">
<h2>Making <span>your Ride</span><br>happen!</h2>
<div>
<a href="registration/busdetail.php" class="btn-get-started scrollto">Add Bus Details</a>
</div>
</div>
<main id="main">
<section id="portfolio" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Our Portfolio</h2>
<p>“The Impulse to Travel is one of the hopeful symptoms of life” ... </p>
</div>
</div>
<div class="container-fluid">
<div class="row no-gutters">
</div>
</section><!-- #portfolio -->
<section id="Partners" class="wow fadeInUp">
<div class="container">
<div class="section-header">
<h2>Partners</h2>
<p>With there Help and Corporation we make your travel full of Joy and
Memorable</p>
</div>
</div>
</section><
<!--==========================
About Section
============================-->
<section id="about" class="wow fadeInUp">
<div class="container">
<div class="row">
<div class="col-lg-6 about-img">
<img src="img/port3.jpg" alt="">
</div>
</div>
</div>
</section><!-- #about -->
</main>
<!--==========================
Footer
============================-->
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong>Traveler</strong>. All Rights Reserved
</div>
<div class="credits">
</body>
</html>
Booking_details: <?
php session_start();
if(!isset($_SESSION['aname'])){ header('location:index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Transport</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
</head>
<body id="body">
<div id="ticketdate" class="container">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h3 class="text-center">Enter Bus Detail</h3>
</div>
<div class="card-body bg-dark">
<form>
<div class="form-group">
<input type="text" class="form-input form-control" name="usn" id="bid"
placeholder="Enter Bus Id"/>
</div>
<div class="form-group">
<h4 class="form-input form-control">Date : <input type="date" class="form-
input" id="pdate"/> </h4>
</div>
</form>
</div>
<div class="card-footer bg-dark">
<div class="btn btn-danger ticketdate">Submit</div>
</div>
</div>
</div>
</div>
<div class="col-md-3"></div>
</div>
<div class="container-fluid mt-5" id="bookeddate">
<div class="card" >
<h2 class="text-center ">Passenger Details </h2>
<div class="card-header bg-info">
<div class="row">
<div class="col-md-2">
<h3 class="text-center text-white">Passenger Name</h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Seat No </h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Number of Seat</h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Fare</h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Status</h3>
</div>
<div class="col-md-2">
<h3 class="text-center text-white">Journey Date</h3>
</div>
</div>
</div>
<div class="card-body bg-dark">
<div id="bdresult"></div>
</div>
</div>
</div>
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong>Traveler</strong>. All Rights Reserved
</div>
<div class="credits">
</body>
</html>
In the case of a Bus Reservation System, several key modules interact with
each other. The primary modules include:
● User Registration and Authentication
● Bus Availability
● Booking System
● Payment System
● Cancellation System
● Test Steps:
1. Register a new user and log in.
2. Search for available buses based on origin and destination.
3. Book a seat on a bus.
4. Make the payment successfully.
5. After a few days, attempt to cancel the booking.
● Expected Result: All steps should work seamlessly. The user should be able
to complete the entire process without any issues. Test Case 2: End-to-End
Test with Failure
● Test Name: test_end_to_end_failure
● Description: Verifies the system’s behavior when one of the steps fails (e.g.,
payment failure).
● Modules Involved: User Registration + Booking System + Payment
System + Cancellation System
● Test Steps:
It can be observed that computer applications are very important in every field
of human endeavor. Here all the information about customer that made
reservation can be gotten just by clicking a button with this new system, some
of the difficulties encountered with the manual system are overcome. It will
also reduce the workload of the staff, reduce the time used for making
reservation at the bus terminal and also increase efficiency. The application also
has the ability to update records in various files automatically thereby relieving
the company’s staff the stress of working from file security of data.
REFERENCES
https://www.w3schools.com
https://www.geeksforgeeks.org https://www.javatpoint.com