Professional Documents
Culture Documents
Micro-Project
on
Seal of
Institute
INDEX
Sr. Contains Page.
No. No.
1. Abstract 4
2. Introduction 5
3. Project Explanation 6
4. Project Requirements 7
7. Conclusion 13
8. References 14
Abstract:-
The DBMS stores information on routes, schedules, seat layouts, and passenger
data. When a booking is made, the system updates the database to reflect the
reserved seats and the passenger's details. Moreover, the DBMS handles
payment processing securely, ensuring that financial data is stored and managed
in compliance with industry standards. It also enables real-time tracking of bus
locations and performance monitoring, as it stores and updates the bus's GPS
data. Data analytics tools integrated into the DBMS analyze historical booking
data to provide insights into passenger preferences and booking trends. Overall,
a well-designed DBMS is integral to the functionality of a bus reservation system,
ensuring data accuracy, security, and efficient
operations.
Project Explanation:-
Our project involves developing a basic bus reservation system that enables
passengers to search for routes, check schedules, book seats, and make
payments, with a Database Management System (DBMS) managing data
storage and retrieval. The system will feature a user-friendly interface for
entering journey details, interactive seat selection, fare calculation, and secure
payment processing. It will store route information, seat availability, booking
details, and financial transactions in the DBMS, ensuring data integrity and
security. This project offers practical experience in creating a simplified
reservation system, with potential for future expansion, and demonstrates your
ability to design and manage a database-driven application, a valuable skill in
software development and database management.
The Requirements:-
We should have knowledge of HTML, CSS, PHP and MySQL for creating the login
system. Text Editor - For writing the code. We can use any text editor such as
Notepad, Notepad++, Dreamweaver, etc.
<?php
$servername = "localhost";
$username = "your_username";
$password = "your_password";
$dbname = "your_database_name";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>
2. User Registration:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$username = $_POST['username'];
$password = password_hash($_POST['password'], PASSWORD_BCRYPT);
if ($stmt->execute()) {
echo "Registration successful.";
} else {
echo "Error: " . $stmt->error;
$stmt->close();
}
?>
3. User Login:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$username = $_POST['username'];
$password = $_POST['password'];
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows == 1) {
$row = $result->fetch_assoc();
if (password_verify($password, $row['password']))
{ echo "Login successful.";
} else {
echo "Incorrect password.";
}
} else {
echo "User not found.";
$stmt->close();
}
?>
4. Bus Booking:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$user_id = $_POST['user_id'];
$bus_id = $_POST['bus_id'];
$seat_number = $_POST['seat_number'];
if ($stmt->execute()) {
echo "Booking successful.";
} else {
echo "Error: " . $stmt->error;
$stmt->close();
}
?>
Conclusion:-
https://www.scribd.com/doc/23190984/Bus-Reservation-System-in-Dbms.
https://www.academia.edu/40839070/BUS_TICKET_RESERVATION_SYSTEM.