php microproject1.2
php microproject1.2
Micro-Project Report
On
Gym Management
System
Submitted To
MSBTE
In Partial Fulfilment of Requirement of Diploma Of
Computer Engineering
Under I Scheme
Submitted By
Mr.R.C.Dhandekar
SAWANTWADI
Seal of
Institution
INDEX
2. INTRODUCTION 2
5. OUTPUT 17-19
6. DATABASES 20
7. CONCLUSION 21
8. REFERENCE 22
Department Of Computer Engineering Gym Management System
1. ABSTRACT
The Gym Management System is a web-based application developed using PHP to automate and
streamline various functions of fitness center, gyms, and health clubs. This system offers gym
owners and administrators an efficient way to manage members, staff, services, and financial
operations through an intuitive and responsive interface. The primary purpose of the system is to
reduce administrative workload and improve overall management processes. Key features of the
system include member registration, member profile management, and membership renewal
tracking. Gym members can access their personal accounts, view their workout schedules, track
fitness progress, and book classes and sessions. The system also allows gym owners to define and
manage membership plans, discounts, and promotions to boost member acquisition and retention.
The Gym Management System supports scheduling and attendance tracking, enabling gym staff to
manage class timings, instructor availability, and participant registrations. Additionally, the system
automates payment processing, allowing for secure online transactions, invoice generation, and
billing history tracking. It also provides financial reporting features to help owners manage revenue,
expenses, and other financial data .With PHP as the core language, the system leverages MySQL for
database management, ensuring fast and secure data storage. The responsive design of the system
ensures it is accessible from any device, improving user experience for both gym members and staff.
The modular design allows for scalability, making the Gym Management System suitable for small
and large gyms alike.
1|P a ge
YBIT
Department Of Computer Engineering Gym Management System
2. INTRODUCTION
The Gym Management System is an advanced web-based software solution designed to simplify and
automate the day-to-day operations of fitness gyms, and health clubs. Developed using PHP and
MySQL, the system is tailored to streamline various administrative tasks, ensuring that gym owners,
staff, and members experience a more organized and efficient environment. With the growing
popularity of fitness and wellness, managing the complexities of membership, scheduling, payments,
and staff can be challenging. The Gym Management System addresses these challenges by providing
a comprehensive and user-friendly platform that meets the needs of both the management and the gym
members.At its core, the system helps manage membership registrations, renewals, and profiles,
ensuring that all member data is stored securely and can be easily accessed. It provides members with
the convenience of viewing their profiles, tracking their fitness progress, booking classes, and
managing their schedules all in one place. This not only improves member engagement but also
enhances their overall experience at the gym.
For gym administrators, the system offers a variety of features that streamline operations. These
include class scheduling, where gym owners can create, update, and manage classes based on instructor
availability. The attendance feature tracks member participation in various classes and helps ensure
accurate billing and scheduling. Additionally, the system provides a comprehensive billing and
payment processing feature, supporting multiple payment methods such as credit/debit cards and
online transactions, while also generating invoices and receipts.Another key feature is the staff
management module, which allows administrators to handle staff scheduling, track attendance, and
evaluate performance. This helps to ensure that the gym operates smoothly and that there is adequate
staffing for each class or shift. The system also incorporates inventory management, allowing gym
owners to track gym equipment, supplies, and other resources to prevent shortages and ensure
maintenance.
Additionally, the Gym Management System provides a reporting and analytics dashboard, which
offers valuable insights into revenue, attendance trends, member activity, and financial performance.
This data helps gym owners make informed decisions and improve business strategies. Notifications
and reminders ensure that both members and staff are updated on important information, including
class schedules, payments, and membership renewals.Built on PHP and utilizing MySQL for backend
database management, the system is scalable, secure, and easy to use. Its responsive design ensures
that it can be accessed from any device, making it convenient for gym members and staff alike.
Whether for a small boutique gym or a large fitness center, the Gym Management System is a versatile
tool that enhances operational efficiency, improves customer satisfaction, and drives growth for the
gym business.
It automates tasks such as member registration, class scheduling, attendance tracking, and billing. Gym
owners can manage memberships, process payments, track inventory, and generate reports easily. The
system also allows members to book classes, monitor their progress, and view schedules. By reducing
administrative tasks, it enhances efficiency, improves user experience, and helps gyms grow. The
system is scalable, secure, and accessible on any device, making it ideal for gyms of all sizes.
2|P a ge
YBIT
Department Of Computer Engineering Gym Management System
1) Login Page:
In a Gym Management System where any username and password can be accepted, the login page
works by presenting the user with fields to enter a username and password. Once the user submits the
form, the system does not validate whether the credentials are correct or stored in the database.
Instead, it assumes that any entered username and password are valid, proceeding to authenticate the
user without any checks. After authentication, the user is redirected to their designated page, such as
a dashboard or homepage, regardless of the credentials they provided. While this method might
simplify access for testing or non-sensitive environments, it is insecure and should never be used in
production systems, as it allows unauthorized users to gain access and bypass important security
measures.
2) Admin-Page:
The Gym Management System admin page allows administrators to add new members through a form
where details like name, contact, and membership type are entered. After submitting the form, the
system stores the member's information in the database. Along with member registration, the page
provides various details about available trainers, including their expertise and schedules. Additionally,
the system displays information about different membership packages, such as pricing and benefits.
The admin can view, update, or delete member records, trainers, and package information easily. This
feature streamlines the management of both members and gym services. The page enhances
organization and helps the admin track and manage all relevant data efficiently
3) Package:
In the Gym Management System, package information is stored in a dedicated "Package" section,
allowing easy access to all relevant details about each membership plan. This includes the package
name, pricing, duration, benefits, and any additional services or perks offered. Once a package is
created or updated, the system automatically stores the information in the database for future reference.
Admins can view, modify, or delete package details as needed, ensuring that the gym’s offerings are
up to date. This centralized storage of package information makes it easy for both the admin and the
members to access full details about available plans, helping to streamline membership management
and improve customer experience.
4) Payments:
In the Gym Management System, the payment section allows administrators to enter details for
customers who have made payments. It records the payment amount, method, and associated
membership information. All payment data is displayed in one place, providing an overview of the
customer's payment history and current status, making it easy to track and manage payments.
3|P a ge
YBIT
Department Of Computer Engineering Gym Management System
5) Trainer:
In the Gym Management System, the trainer session allows administrators to register trainer details
such as name, specialization, contact information, and availability. This data is stored in the system
for easy management. Trainers can be assigned to specific classes or members based on their expertise.
The system helps track trainer schedules and availability. It ensures efficient allocation of trainers to
meet gym needs. This feature simplifies trainer management and improves overall gym operations.
6) Trainer details:
In the Gym Management System, the trainer details session provides full information about each
trainer, including their name, contact details, specialization, and qualifications. It also displays their
availability, assigned classes, and schedules. Administrators can easily view and manage the trainer’s
information in one place. This section helps track performance, assign trainers to appropriate sessions,
and update their details when needed. It ensures smooth operations by providing clear visibility into
trainer availability and expertise. The system simplifies the management of trainers and their
assignments. It helps enhance the gym's overall efficiency. This feature improves both staff
management and member satisfaction.
In the Gym Management System, to add a new trainer, the administrator fills out a form in the trainer
details session. The form includes fields for the trainer’s name, contact information, specialization,
qualifications, and availability. After entering the necessary details, the administrator submits the form.
The system validates the information, ensuring that all required fields are completed correctly. Once
validated, the trainer's data is added to the database, making it available for management. The new
trainer is then assigned to appropriate classes or schedules based on their expertise. The system
automatically updates the trainer list, ensuring all records are current. Administrators can view,
modify, or delete trainer information as needed. This process helps keep track of trainer details in an
organized and efficient manner. The addition of new trainers is seamlessly integrated into the system
for better gym operations.
4|P a ge
YBIT
Department Of Computer Engineering Gym Management System
4.PROGRAM CODE
a) Index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
</style>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-4">
<div class="card">
<div class="card-body">
<center>
<h5>Admin Login</h5><br>
<div class="row">
</div>
class="btn btn-primary"></center>
5|P a ge
YBIT
Department Of Computer Engineering Gym Management System
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-
b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>
b) Admin-panel.php:
<?php
$hostname = "localhost";
$username = "root";
$password = "";
$databaseName = "loginsystem"
if (!$connect) {
// For method 1
<!DOCTYPE html>
<head>
<meta charset="utf-8">
6|P a ge
YBIT
Department Of Computer Engineering Gym Management System
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
<div class="list-group">
</div <hr>
<div class="list-group">
</div>
</div>
<div class="col-md-8">
<div class="card">
</div>
<div class="card-body">
<label>First name:</label>
<label>Last name:</label>
<label>Email:</label>
<label>Member ID:</label>
<label>Trainer:</label>
</select>
<div class="col-md-1"></div>
</div </div>
<header>
<nav>
<div class="main-wrapper">
<div class="nav-login">
<?php
session_start();
if (isset($_SESSION['u_id'])) {
</form>';
} else {
</form>';
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</body>
c) Func.php
<?php
$con = mysqli_connect("localhost", "root", "", "loginsystem");
if (isset($_POST['login_submit'])) {
if (mysqli_num_rows($result) == 1) {
header("Location: admin-panel.php");
} else {
8|P a ge
YBIT
Department Of Computer Engineering Gym Management System
echo "<script>window.open('admin-panel.php','_self')</script>";
}if (isset($_POST['pat_submit'])) {
$query = "INSERT INTO doctorapp (firstname, Lastname, email, contact) VALUES ('$firstname', '$lastname', '$email', '$contact')";
if ($result) {
echo "<script>window.open('admin-panel.php','_self')</script>";
if (isset($_POST['tra_submit'])) {
$query = "INSERT INTO Trainer (Trainer_id, Name, phone) VALUES ('$Trainer_id', '$Name', '$phone')";
if ($result) {
echo "<script>window.open('admin-panel.php','_self')</script>";
if (isset($_POST['pay_submit'])) {
if ($result) {
echo "<script>window.open('admin-panel.php','_self')</script>";
9|P a ge
YBIT
Department Of Computer Engineering Gym Management System
function get_patient_details() {
global $con;
$fname = $row['fname'];
$lname = $row['lname'];
$email = $row['email'];
$contact = $row['contact'];
$docapp = $row['docapp'];
echo "<tr>
<td>$fname</td>
<td>$lname</td>
<td>$email</td>
<td>$contact</td>
<td>$docapp</td>
</tr>";
}function get_package() {
global $con;
$package_id = $row['package_id'];
$package_name = $row['package_name'];
$amount = $row['amount'];
echo "<tr>
<td>$package_id</td>
<td>$package_name</td>
<td>$amount</td>
</tr>";
function get_trainer() {
global $con;
10 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
$trainer_id = $row['trainer_id'];
$Name = $row['name'];
$phone = $row['phone'];
echo "<tr>
<td>$trainer_id</td>
<td>$Name</td>
<td>$phone</td>
</tr>";
}function get_payment() {
global $con;
$payment_id= $row['payment_id'];
$amount = $row['amount'];
$payment_type = $row['payment_type'];
$customer_id = $row['customer_id'];
echo "<tr>
<td>$payment_id</td>
<td>$amount</td>
<td>$payment_type</td>
<td>$customer_id</td>
</tr>
?>
d) Package.php
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
cover;height: 300px;"></div>
<div class="container">
11 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
<div class="card">
<div class="row">
<div class="col-md-1">
</div>
<div class="col-md-8">
<div class="row">
</form></div></div></div>
<div class="card-body">
<th>Package_ID </th>
<th>Package_Name</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<?php get_package();
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>
e) Payment.php;
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title></title>
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
12 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
<body>
cover;height: 300px;"></div>
<div class="container">
<div class="card">
<div class="row">
<div class="col-md-1">
</div>
<div class="col-md-8">
<div class="row">
</form></div></div></div>
<div class="card-body">
<thead>
<tr>
<th>Payment ID </th>
<th>Amount</th>
<th>Payment Type</th>
<th>Customer ID</th>
<?php get_payment();
?>
</tbody>
</table>
</div>
<div class="card-body"></div>
<label>Payment ID</label>
<label>Amount</label>
13 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
<label>Customer ID</label>
<label>Payment Type</label>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
f) Signup.php
<?php
include_once 'header.php';
?>
<section class="main-container">
<div class="main-wrapper">
<h2>signup</h2>
</form>
</div>
</section>
<?php
include_once 'footer.php';
?>
14 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
g) dbc.: inc.php
<?php
$dbServername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "loginsystem";
h) Trainer-search.php:
<html>
<head>
<title>Patient details</title>
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body>
<?php
include("func.php");
if(isset($_POST['patient_search_submit']))
$contact=$_POST['search'];
$result=mysqli_query($con,$query);
<div class'card'>
<img src='gym3.jpg'>
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Email id</th>
<th>Contact</th>
<th>Trainer ID</th>
</tr>
</thead>
<tbody>
</div></div>";
15 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
while ($row=mysqli_fetch_array($result)){
$fname=$row ['fname'];
$lname=$row['lname'];
$email=$row['email'];
$contact=$row['contact'];
$docapp=$row ['docapp'];
<td>$fname</td>
<td>$lname</td>
<td>$email</td>
<td>$contact</td>
<td>$docapp</td>
</tr>";
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>
16 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
5.OUTPUT
a)Login page
b)Admin-panel
c)TrainerInformation:
18 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
e)Package:
19 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
6.DATABASES
20 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
7.CONCLUSION
In conclusion, the Gym Management System offers a streamlined and efficient way to manage various
gym operations. It simplifies member registration, attendance tracking, and billing processes,
enhancing the overall experience for both staff and members. By integrating scheduling, workout
tracking, and progress monitoring, it encourages a more organized and personalized fitness journey.
Additionally, the system improves communication between trainers and members, promoting better
engagement. The use of automated reminders and notifications reduces manual work and increases
efficiency. Security features ensure that personal and financial data is protected. With its user-friendly
interface, the system is easy to navigate for both administrators and members. Overall, it increases
operational efficiency, customer satisfaction, and business growth. The Gym Management System is
an invaluable tool for modern fitness centers. It enables gyms to provide a high-quality service while
optimizing management tasks.
21 | P a g e
YBIT
Department Of Computer Engineering Gym Management System
8.REFERENCES
https://www.academia.edu/76654800/A_Project_Paper_on_Smart_Gym_Management_System?utm_sou
rce.com
https://www.irjmets.com/uploadedfiles/paper//issue_11_november_2022/31470/final/fin_irjmets166897
2617.pdf?utm_source=chatgpt.com
https://www.ijsrtjournal.com/article/Gym-Management-System?utm_source=chat.com
1) https://www.php.net/docs.php
2) https://www.researchgate.net/publication/315920823_Toxic_tos
3)https://www.php.net/manual/en/security.php
c) Books Refered:
22 | P a g e
YBIT