Download Railway management System and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!
Padmabhushan Vasantdada Patil Pratishtan’s College of
Engineering
Sion, Mumbai-400 022
Mumbai University
A
MINI PROJECT REPORT
ON
RAILWAY RESERVATION SYSTEM
Submitted to the
Padmabhushan Vasantdada Patil Pratishtan’s College of
Engineering
Bachelor of Engineering
In
Computer Engineering
Submitted By:
GAIKAWAD CHINMAY VIJAYANAND VU1F
SALVI SUYASH PRAVIN VU1F
Under the guidance of
Prof. Asharani Shinde
Department of Computer Engineering
Padmabhushan Vasantdada Patil Pratishtan’s College of
Engineering
Sion, Mumbai-400 022
Mumbai University
2 | P a g e
Department of Computer Engineering
INDEX
CONTENTS PAGE
NO.
• INTRODUCTION^4
• EXPLANATION^ OF^ RAILWAY
RESERVATION SYSTEM
• LIST^ OF^ SQL^ &^ PHP^ CONCEPTS
USED IN RAILWAY RESERVATION
SYSTEM
• EXPLANATION OF EACH & EVERY
SQL & PHP CONCEPTS USED IN
RAILWAY RESERVATION SYSTEM
• CODING/IMPLEMENTATION^11
• OUTPUTS^37
• CONCLUSION^41
• REFERENCES^41
4 | P a g e
Department of Computer Engineering
INTRODUCTION
Database
The database is a collection of inter-related data which is used to retrieve, insert
and delete the data efficiently. It is also used to organize the data in the form of a
table, schema, views, and reports, etc.
For example: The bank Database organizes the data about the manager, staff,
employees, customers and branch etc.
Using the database, user can easily retrieve, insert, and delete the information.
Database Management System
- Database management system is a software which is used to manage the database. For example: MySQL, Oracle, etc are a very popular commercial database which is used in different applications.
- DBMS provides an interface to perform various operations like database creation, storing data in it, updating data, creating a table in the database and a lot more.
- It provides protection and security to the database. In the case of multiple users, it also maintains data consistency.
DBMS allows users the following tasks:
- Data Definition: It is used for creation, modification, and removal of definition that defines the organization of data in the database.
- Data Updation: It is used for the insertion, modification, and deletion of the actual data in the database.
- Data Retrieval: It is used to retrieve the data from the database which can be used by applications for various purposes.
- User Administration: It is used for registering and monitoring users, maintain data integrity, enforcing data security, dealing with concurrency control, monitoring performance and recovering information corrupted by unexpected failure.
5 | P a g e
Department of Computer Engineering
Advantages of DBMS
- Controls database redundancy: It can control data redundancy because it stores all the data in one single database file and that recorded data is placed in the database.
- Data sharing: In DBMS, the authorized users of an organization can share the data among multiple users.
- Easy Maintenance: It can be easily maintainable due to the centralized nature of the database system.
- Reduce time: It reduces development time and maintenance need.
- Backup: It provides backup and recovery subsystems which create automatic backup of data from hardware and software failures and restores the data if required.
- Multiple user interface: It provides different types of user interfaces like graphical user interfaces, application program interfaces.
Disadvantages of DBMS
- Cost of Hardware and Software: It requires a high speed of data processor and large memory size to run DBMS software.
- Size: It occupies a large space of disks and large memory to run them efficiently.
- Complexity: Database system creates additional complexity and requirements.
- Higher impact of failure: Failure is highly impacted the database because in most of the organization, all the data stored in a single database and if the database is damaged due to electric failure or database corruption then the data may be lost forever.
Relational database management systems (RDBMS) is used to store and manage
huge volume of data. This is called relational database because all the data is
stored into different tables and relations are established using primary keys or
other keys known as Foreign Keys.
A Relational Database Management System (RDBMS) is a software that:
- Enables user to implement a database with tables, columns and indexes.
- Guarantees the Referential Integrity between rows of various tables.
- Updates the indexes automatically.
- Interprets an SQL query and combines information from various tables.
7 | P a g e
Department of Computer Engineering
EXPLANATION OF RAILWAY RESERVATION SYSTEM
Railway Management System is easy to use, secured and error free system
created using the concepts of MySQL and PHP. It provides a user-friendly
interface while working. Customer can access their respective details anywhere
and anytime. Various functions provided are as follows:
- Create Account- To create account in RAILWAY RESERVATION SYSTEM, account holder's email id, mobile no and date of birth is required.
- Train Enquiry- Account Holder can Enquire about train anytime according to his convenience with date of journey and station.
- Train Schedule- Account Holder can check Train schedule available in Database.
- Train Booking- Account Holder can book any available seat from any specific trains on a particular date.
- Get PNR status- Account Holder can check his booking status anytime.
- Cancel Train Booking - Account Holder can cancel booking of specific train if booked and data will be deleted.
- User Information- Account Holder can Check their details and booking history online.
- Delete Account- Account Holder can Delete his account RAILWAY RESERVATION SYSTEM and data from database will be removed.
8 | P a g e
Department of Computer Engineering
LIST OF SQL & PHP CONCEPTS USED IN RAILWAY
RESERVATION SYSTEM
PHP PDO
1. Connecting to MySQL database
2. Insert Data to MySQL Database
3. Retrieve Data from MySQL Database
4. Updating Data into MySQL Database
5. Deleting Data from MySQL Database
10 | P a g e
Department of Computer Engineering
iv. Updating Data into MySQL Database:
In order to run an UPDATE query with PDO just follow the steps below:
- create a correct SQL UPDATE statement
- replace all actual values with placeholders
- prepare the resulting query
- execute the statement, sending all the actual values to execute() in the form of array.
v. Deleting Data from MySQL Database:
Like the UPDATE a WHERE clause ensures the correct record is removed.
11 | P a g e
Department of Computer Engineering
CODING/IMPLEMENTATION
Index.html
RAILWAY RESERVATION SYSTEM RAILWAY RESERVATION SYSTEM
admin.html
13 | P a g e
Department of Computer Engineering
echo "
<a href="http://localhost/railway/cancelled.php"> View all cancelled tickets
"; //echo "
<a href="http://localhost/railway/logout.php"> Logout
"; } else { echo "
"; } ?>
Go to Home Page!!! Error:". $conn->error; } echo "
$cdresult=mysqli_query($conn,$cdquery); echo " <option value = "" > "; while ($cdrow=mysqli_fetch_array($cdresult)) { $cdTitle=$cdrow['sname']; echo " <option value = "$cdTitle" > $cdTitle ";