Skip to main content

Train Station Ticketing System using PHP/MySQLi with Source Code

Language

Project: Train Station Ticketing System using PHP/MySQLi 

About

The Train Station Ticketing System using PHP/MySQLi is a simple project that can help a certain railway company or train company to automate their ticket generation. The system has 2 types of users which is one for the railway or train company management and the other for their staff on their ticketing booth per station. The system also generates a daily report that lists all the daily transactions of the railway transport company or train station with its passengers. The management can manage the rates per destination from a specific station and the system will automatically fetch the price after the staff choose the passenger's desired destination and also the staff can generate multiple tickets in a single transaction in the same destination. The train company's management or the system admin users can manage all the data in this simple train station ticketing system and the staff can generate only the passenger's train tickets.

Features

  • Login Page
    • The page where the system users submit their system credentials in order to access the system functionalities depending on their roles.
  • Home Page
    • The page where the system admin user will be redirected by default after logging into the system.
  • Stations Page
    • The page where the system admin will manage the list of their company train stations.
  • Rate Page
    • The page where the system admin manages the rates per destination from a specific station.
  • Ticketing Page
    • The page where the system admin and staff generate passenger tickets.
  • Daily Report Page
    • The page where the system admin can print the daily transactions report.

The Train Station Ticketing System was developed using HTML, PHP/MySQLi, CSS, JavaScript (jQuery/Ajax), and Bootstrap for the design. The source code is fully functional and easy to modify or enhance. Follow the instruction below to have an actual experience using this simple project.

How to Run

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs PHP script.
  3. Open the web-server database and create a new database name it tsts_db.
  4. Import the SQL file located in the database folder of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. E.g [http://localhost/train-station-ticketing-system]

Admin Default Access

Username: admin

Password: admin123

I hope this simple Train Station Ticketing System will help you with what you are looking for, feel free to download and modify the source code.

Explore more on this website for more source codes and tutorials.

Enjoy!

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment