🏋️

Developing a Gym Management System

Aug 14, 2024

Gym Management System Development

Introduction

  • Creating an online gym management system using PHP, MySQL, and Bootstrap 4.
  • Overview of the project: demo of the front-end system.

Project Structure

  • The project consists of two modules: Front-End and Back-End.
  • Front-End: Contains multiple sections and pages.
  • Back-End: To be developed and integrated with the front end.

Preparation Steps

  1. Subscribe to the channel "Tuition Tonight" and "Utafi 1.0" for Urdu/Hindi content.
  2. Download XAMPP:
    • Search for "Download XAMPP" in Google.
    • Download the compatible version for your system.
  3. Set Up Project Directory:
    • Create a directory named gym in the XAMPP folder (htdocs).
    • Open the folder in an IDE (e.g., Visual Studio Code, Sublime Text).

File Structure

  • Create the following PHP files:
    • config.php (configuration)
    • admin_login.php
    • billing.php
    • coach.php
    • members.php
    • reception.php

Front-End Development

  • Using Bootstrap:
    • Import Bootstrap CSS in the header and JS at the bottom of the body.
  • Create a navigation bar:
    • Extract code from Bootstrap website for a responsive navigation bar.
    • Modify links as required for different pages.
  • Logo:
    • Save the logo in the img folder and reference it in the code.

Setting Up Database

  • Start Apache and MySQL services from XAMPP control panel.
  • Access phpMyAdmin to create the database:
    • Database name: gym.
    • Create tables with the following columns:
      • Billing Table: id, period, price (all VARCHAR with length 20).
      • Coach Table: Similar structure with extra fields for experience and date of birth.
      • Members Table: Columns for id, name, date, date of birth, phone, coach name.

Back-End Development

  • Connecting to the Database:
    • Include config.php in all relevant PHP files for database connection.
  • Data Handling:
    • Create HTML forms for user input in billing.php, coach.php, and members.php.
    • Use PHP script to handle form submissions and insert data into respective tables.

Admin Login Functionality

  • Create an admin_login.php page:
    • Copy stylish front-end code for the login page.
    • Validate login credentials (username: admin, password: admin).
    • Redirect to billing.php upon successful login.
    • Display error message for incorrect credentials.

Integration of Front-End and Back-End

  • Copy all front-end files to the gym folder.
  • Ensure links to admin login and other pages are properly set in navigation.
  • Clear cache and refresh the browser to see changes.

Final Steps

  • Test all functionalities to ensure proper working of the gym management system.
  • Push the project code to GitHub for access. Create a repository with a description.
  • Direct users to the website for the source code.

Conclusion

  • Subscribe and like the channel for more projects and updates.
  • Review and apply the project steps for a complete gym management system.