Dbms Online Bus Management System Project Report
Dbms Online Bus Management System Project Report
Bachelor of Engineering in
Information Science & Engineering
By
PREETHIKA REDDY S (1CR21IS119)
2023-24
CERTIFICATE
This is to certify that the Database Management System Project work entitled “Online Bus
Reservation System” has been carried out by Preethika Reddy S bonafide student of CMR
Institute of Technology, Bengaluru in partial fulfillment for the award of the Degree of
Bachelor of Engineering in Information Science and Engineering of the Visvesvaraya
Technological University, Belagavi during the year 2023-2024. It is certified that all
corrections/suggestions indicated for the Internal Assessment have been incorporated in the
report deposited in the departmental library. This Database Management System Project report
has been approved as it satisfies the academic requirements in respect of project work
prescribed for the said Degree.
1.
ii
2.
DECLARATION
We, the students of V semester from Department of Information Science and Engineering, CMR
Institute of Technology, Bangalore declare that the project work entitled "Online Bus
Reservation System" has been successfully completed under the guidance of Prof Upasana
Mahajan, Assistant Professor, Dept. of Information Science and Engineering, CMR Institute of
technology, Bengaluru. This project work is submitted in partial fulfillment of the requirements
for the award of the Degree of Bachelor of Engineering in Information Science and Engineering
during the academic year 2023-2024. The matter embodied in the project report has not been
submitted previously by anybody for the award of any degree or diploma to any university.
Place: Bangalore
Date: 08/03/2024
Team members:
PREETHI BHEEMASHANKAR
TALWAR (1CR21IS118)
KAVYA MANNE (1CR21IS076)
iii
ABSTRACT
The Online Bus Reservation System is a web-based platform designed to streamline the process
of booking bus tickets. It aims to provide passengers with a convenient and efficient way to
reserve seats on buses, eliminating the need to visit a physical ticket counter. Developed using
technologies such as React, Node.js, and MySQL, the system offers a secure and user-friendly
interface for both passengers and bus operators.
The implementation of the Online Bus Reservation System has shown promising results in terms
of enhancing the booking experience for passengers and improving the operational efficiency of
bus companies. By leveraging the power of online booking, the system has the potential to
revolutionize the bus ticketing industry, making bus travel more accessible and convenient for
all. Keywords: Online Bus Reservation, Ticket Booking, Passenger Experience, Operational
Efficiency, Accessibility, Convenience.
iv
ACKNOWLEDGEMENT
I take this opportunity to express my sincere gratitude and respect to CMR Institute of
Technology, Bengaluru for providing me a platform to pursue my studies and carry out the
Database Management System Project.
It gives me an immense pleasure to express my deep sense of gratitude to Dr. Sanjay
Jain, Principal, CMRIT, Bengaluru, for his constant encouragement.
I would like to extend my sincere gratitude to Dr. Jagadishwari V, HOD, Department of
Information Science and Engineering, CMRIT, Bengaluru, who has been a constant support and
encouragement throughout the course of this project.
I would like to thank my guide Prof Upasana Mahajan, Assistant Professor,
Department of Information Science and Engineering, for the valuable guidance throughout the
tenure of the project work.
I would also like to thank all the faculty members of Department of Computer Science
and Engineering who directly or indirectly encouraged me.
Finally, I thank my parents and friends for all the moral support they have given me
during the completion of this work.
TABLE OF CONTENTS
vi
LIST OF FIGURES
Page No.
Fig 5.1 User Dashboard 23
Fig 5.2 User Finding Schedule 23
Fig 5.3 User Booking Schedule 24
Fig 5.4 Admin Login Page 24
Fig 5.5 Admin Schedule Access 25
Fig 5.6 Admin Location List Access 25
vii
CHAPTER 1
INTRODUCTION
Our project is to computerize traveling company to manage data, so that all the transactions
become fast and there should not be any error in transaction like calculation mistake, bill
generation and other things. It replaces all the paper work. It keeps records of all bills also,
giving to ensure 100% successful implementation of the computerized Bus reservation
system . The online ticket generation would end the use of the hefty 1.5-kg ticket racks
carried by conductors. It would also end the practice of tearing out tickets and marking fare
stages. The Conductor would just have to key in the details about the fare stage and the
passenger details.
This project is modularized as the following:
• Management of Route
• Trip Details
• Bus Details
• Bus Ticketing
1. Management of Routes
This module include information about how we can Manage the routes for a particular bus
services so. In the case of Route management module we must know the details about route
number, fare stages and running time of the particular bus more over we want to manipulate
and store these information successfully.
2. Trip information
Each journey is identified as a trip. Each ticket must contain the trip no so that calculation of
passenger can be done easily. Here in this section we want to know start time and route no
of the bus this information can be manipulate and stored successfully.
3. Bus Detail
In this module all bus details are stored and manipulated, in bus detail module contains
minimum charge, type, depot, fare increment, bus number are manipulate and stored.
4. Bus Ticketing
Ticketing is the most important module in this Project which uses all the tables together and
calculates fare for the
passengers. Venting the tickets is done using the route number, bus type, beginning stop,
end stop, ticket number, fare price, date and time also we want to print the all these
information. In order to do the calculation data has to be pulled out from stops, bus, trip and
route.
Objectives:
• To develop the Bus Management System using MYSQL, HTML, CSS, PHP
• To have an interactive interface with the user to allow them to comfortably book the
ticket from any part of the country
The Online Bus Reservation System project is focused on designing and developing a
web-based platform for booking bus tickets and managing reservations. The system
will include the following key features and functionalities:
User registration and login for passengers to create accounts and access the
reservation system.
Browsing and searching for bus routes, schedules, and availability.
Selecting seats and booking tickets for desired routes and dates.
Managing bookings, including viewing and canceling reservations.
Integration with payment gateways for secure online transactions.
Providing notifications and alerts for booking confirmations, changes, and
cancellations.
The project will prioritize the usability and user experience of the reservation system to
ensure that passengers can easily navigate the platform and make bookings efficiently.
Additionally, the system will focus on security measures to protect passenger data and
payment information.
Overall, the Online Bus Reservation System aims to provide a comprehensive and user-
friendly platform for booking bus tickets online, enhancing the convenience and
accessibility of bus travel for passengers.
CHAPTER 2
SYSTEM REQUIREMENTS
System requirements for a project detail the essential hardware and software resources
needed for development, deployment, and operation. It's crucial to thoughtfully consider
and plan these requirements, as incorrect choices can result in performance bottlenecks,
compatibility issues, or other problems that may affect the project's success.
Now, this method is intended in such a way that it takes fewer resources to figure out work
correctly.
It’s its type of minimum needs that we’d like to require care of:
The system must be operated by some approved person as wrong hands will build it
happy-go-lucky.
Rest is all up to the user’s usage can take care of the hardware.
For security opposing anti-virus is suggested.
The system is made correctly, and all the testing is done as per the requirements. So, the rest
of the things depend on the user, and no one can harm the data or the software if the proper
care is done. All the attributes are working correctly, and if any error is found, then it can be
removed easily.
These consist of the hardware and software components of a computer system that are
required to install in order to use the software efficiently
BROWSER:
Google Chrome is used to run the web server locally. "Localhost" refers to the local
computer that a program is running on. Localhost is used in Web scripting languages like
PHP for defining Apache server the code should run from or where the medical database is
located
XAMPP:
XAMPP is a free and opensource cross-platform web server solution stack package
developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB
database, and interpreters for scripts written in the PHP and Perl programming languages.
XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (P). It
is a simple, lightweight Apache distribution that makes it extremely easy for developers to
create a local web server for testing and deployment purposes. Everything needed to set up a
web server – server application (Apache), database (MariaDB), and scripting language
(PHP) – is included in an extractable file.
CHAPTER 3
DESIGN
A schema diagram visually represents the structure of a database. It displays
tables, their columns, and the relationships between them. It helps in
understanding the organization and layout of the database. Schema diagrams are
essential for database design and documentation.
Bus
Name Bus_id
Sch_list
Users
User_name Password
Loc
Booked
Dept. of Page 4
lOMoARcPSD|36155470
CHAPTER-4
IMPLEMENTATION
Requirement Analysis:
Understanding the needs of the bus reservation system, including
functionalities like booking, cancellation, seat availability, route
management, etc.
Database Design:
Identify entities: Bus, Route, Schedule, Passenger, Reservation.
Define attributes for each entity.
Determine relationships between entities (e.g., a bus has multiple schedules,
a passenger can make multiple reservations).
Normalize the database design to reduce redundancy and improve efficiency.
Data Population:
Insert sample data into the tables to test functionalities.
Populate tables such as Bus, Route, Schedule with realistic data.
Implement Functionalities:
Write SQL queries and stored procedures to handle core functionalities like
booking a seat, cancelling a reservation, checking seat availability, etc.
Create procedures for searching routes, displaying available seats, and
making reservations.
Implement error handling and validation mechanisms to ensure data
integrity.
Testing:
Perform thorough testing of the system to ensure all functionalities work as
expected.
Test scenarios like booking seats, cancelling reservations, handling conflicts,
etc.
Conduct both unit testing (individual components) and integration testing
(interaction between components).
Deployment:
Deploy the system to the intended environment, whether it's a local server or
a cloud-based solution.
Configure access controls and security measures to protect the database.
-- Database: `bus_booking`
-- Table structure for table `booked`
INSERT INTO `bus` (`id`, `name`, `bus_number`, `status`, `date_updated`) VALUES (3,
'Economy', '5001', 1, '2020-09-08 13:54:42');
4.2 INDEX.PHP:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Bus Booking Management System</title>
</head>
<body>
<?php session_start() ?>
<?php header('index.php?page=home'); include 'header.php'; ?>
<?php if(isset($_SESSION['login_id'])) include 'admin_navbar.php'; else include
'navbar.php'; ?>
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary submit" onclick="$('#uni_modal
form').submit()">
<?php echo isset($_SESSION['login_id']) ? 'Save' : 'Find' ?>
</button>
<button type="button" class="btn btn-secondary" data- dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<div class="modal fadeIn" tabindex="-1" id="confirm_modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Confirmation</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="confirm"
onclick="">Continue</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<div class="modal fadeIn" tabindex="-1" id="book_modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
4.3 ADMIN.PHP:
<!DOCTYPE html>
<html>
<head>
<?php include('header.php') ?>
<?php
// session_start();
// if(isset($_SESSION['login_id'])){
// header('Location:home.php');
// }
?>
<title>Admin Login |Bus Booking</title>
</head>
<style> body {
background-image: url(./assets/img/bus1.jpg); height: 96vh;
background-position: center; background-repeat: no-repeat; background-size: cover;
}
</style>
<body id='login-body' class="bg-light">
<div class="card col-md-4 offset-md-4 mt-4">
<div class="card-header-edge text-white">
<strong>Login</strong>
</div>
<div class="card-body">
<form id="login-frm">
<div class="form-group">
<label>Username</label>
<input type="username" name="username" class="form-control">
</div>
Dept. of ISE, CMRIT 2023-2024 Page 13
<div class="form-group">
<label>Password</label>
<input type="password" name="password" class="form-control">
</div>
<div class="form-group text-right">
<button class="btn btn-primary btn-block" name="submit">Login</button>
</div>
</form>
</div>
</div>
</body>
<script>
$(document).ready(function(){
$('#login-frm').submit(function(e){ e.preventDefault()
$('#login-frm button').attr('disable',true)
$('#login-frm button').html('Please wait...')
$.ajax({ url:'./login_auth.php',
method:'POST', data:$(this).serialize(), error:err=>{ console.log(err)
alert('An error occured');
$('#login-frm button').removeAttr('disable')
$('#login-frm button').html('Login')
},
success:function(resp){ if(resp == 1){
location.replace('index.php?page=home')
}
else
{
alert("Incorrect username or password.")
$('#login-frm button').removeAttr('disable')
$('#login-frm button').html('Login')
}
}
})
})
})
</script>
</html>
CHAPTER 5
INTERPRETATION OF RESULT
Interpreting the results in a bus reservation system in a DBMS involves understanding the
data retrieved from the database based on user queries or system operations.
User Actions:
Success: the user's request was completed.
Error: the system couldn't complete the user's request.
Cancellation:
Success: Reservations were canceled successfully.
Error: There was an issue canceling the reservation, like an invalid ID.
Seat Availability:
Success: Shows available seats for selected buses and dates.
No Availability: No seats are available for the selected criteria.
Payment Processing:
Success: Payment was successful.
Error: Payment failed due to reasons like a declined card or connection problem.
Reporting:
Success: Reports provide useful insights into system usage.
Interpretation: Admins use these reports to understand system performance and
make decisions.
Schedule
Show Entries, Search, Id Numbers, Date, Bus, Location, Departure, ETA,
Availability, Price, Action, Delete, and Edit.
Booked List
ID Number, Ref Number, Full Name, Quantity, Amount, Status, Show
Entries, Search, and Edit.
Bus List
ID Number, Bus Number, Bus Name, Show Entries, Edit, Delete, and
Search.
Location List
ID Number, Terminal, City, Province State, Show Entries, Edit, Delete,
and Search.
User
ID Number, Name, User Name, Edit, Delete, Show Entries, and Search.
OUTPUT:
CHAPTER 6
CONCLUSION AND FUTURE SCOPE
CONCLUSION
In conclusion, the bus reservation system mini project offers a robust solution for managing
bus ticket reservations effectively. Through its user-friendly interface and streamlined
booking process, it enhances the overall experience for both customers and administrators.
By automating reservation tasks, reducing errors, and providing timely information, the
system improves operational efficiency and customer satisfaction. As a result, it stands as a
testament to the power of technology in modernizing and optimizing transportation services.
Further refinement and adaptation to emerging technologies will ensure its continued
relevance and competitiveness in the dynamic travel industry.
FUTURE SCOPE
REFERENCES
1. https://www.campcodes.com/
2. https://www.google.com/
3. https://www.github.com/
4. https://www.geeksforgeeks.org