0% found this document useful (0 votes)
4 views43 pages

Prathyusha DBMS

The document is a mini project report for a Gym Management System developed by MD Ismail as part of the Bachelor of Engineering in Information Science and Engineering at Visvesvaraya Technological University. The project aims to automate gym management tasks such as member registration, payment tracking, and trainer management using technologies like PHP, HTML, and SQL. It includes various components such as objectives, ER and schema diagrams, data tables, source codes, and acknowledgments from faculty members involved in the project.

Uploaded by

Simran s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views43 pages

Prathyusha DBMS

The document is a mini project report for a Gym Management System developed by MD Ismail as part of the Bachelor of Engineering in Information Science and Engineering at Visvesvaraya Technological University. The project aims to automate gym management tasks such as member registration, payment tracking, and trainer management using technologies like PHP, HTML, and SQL. It includes various components such as objectives, ER and schema diagrams, data tables, source codes, and acknowledgments from faculty members involved in the project.

Uploaded by

Simran s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 43

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

JnanaSangama, Belagavi – 590014.

MINI PROJECT REPORT

ON

“Gym Management System”


Submitted in partial fulfillment for the requirement of 5th semester for the

Degree of Bachelor of Engineering in

INFORMATION SCIENCE & ENGINEERING

For the academic year 2023-24

SUBMITTED BY:
MD ISMAIL

[1DB22IS409]
Under the guidance of:
Mrs. Nivedita Hebbable
Assistant Professor
Dept. of Information Science and Engineering

DON BOSCO INSTITUTE OF TECHNOLOGY, BENGALURU-560074


DON BOSCO INSTITUTE OF TECHNOLOGY

Kumbalagodu, Bengaluru-560074
VISHVESVARAYA TECHNOLOGICAL UNIVERSITY JNANA
SANGAMA, BELAGAVI-590018.

DON BOSCO INSTITUTE OF TECHNOLOGY, BENGALURU-560074


DON BOSCO INSTITUTE OF TECHNOLOGY

Kumbalagodu, Bengaluru-560074

Certificate

This is to certify that the Mini Project Report entitled “GYM MANAGEMENT

SYSTEM” is a bonafide Mini Project work carried out by MD ISMAIL


(1DB22IS409), in partial fulfillment of ‘5th’ semester for the Degree of Bachelor of
Engineering in Information Science and Engineering of Visvesvaraya Technological
University, Belagavi, during the academic year 2023-24. It is certified that all
corrections/suggestions indicated for Internal Assessments have been incorporated with the
degree mentioned.

Signature of Guide Signature of HoD

Mrs. Nivedita Hebbale Dr.Dept. B K of Raghavendra CSE,

Asst. Professor. ProfessorDBIT, Bangalore. & Head


Dept. of ISE, Dept. of ISE
DBIT, Bangalore. DBIT, Bangalore

External Viva

Name of the Examiners Signature with Date


1.

2.
ACKNOWLEDGEMENT
At the various stages in making the mini project, a number of people have given me invaluable
comment on the manuscript. I take this opportunity to express my deepest gratitude and
appreciation to all those who helped me directly or indirectly towards the successful completion
of this project.

I would like to thank Dr. B. S. NAGABHUSHANA, Principal, Don Bosco Institute of


Technology for his support throughout this project.

I express our whole hearted gratitude to Dr. B. K. RAGHAVENDRA, Professor and Head of
Department of Information Science and Engineering. I wish to acknowledge for his valuable
help and encouragement.

In this regard I owe a heartfelt gratitude to our guide Mrs. Nivedita Hebbale Assistant
Professor, Department of Information Science and Engineering, DBIT, Bengaluru for her
constant help and support extended towards us during the course of the project.

I would also like to thank the teaching and non teaching staff members of Department of
Information Science and Engineering for their corporation.

MD ISMAIL
(1DB22IS409)
ABSTRACT
The main aim and objective were to plan and program system application. We justify to apply
the best software engineering practice for system application. I developed a “Gym Management
System” using HTML and SQL. This project provides a platform to store the details of gyms,
payment areas, trainers and members. And in dynamic way of accessing the data of gyms,
payment areas, trainers and members, maintaining in real time basis and upgrading the
information. To know the information of the above mentioned, it is necessary to have a database
used to store all these details. This mini project is done to obtain the above statement and update
the details in real time. This project also reduces the work of manually storing details and
messing up things. And the tools used to design and develop this useful project are SQL in PHP
for backend and HTML and CSS for frontend. This mini project is an excellent solution for
gyms with large or growing number of members, or ones serving elite clientele. This solution
helps to identify the user and manage the timely memberships.
CONTENTS

CHAPTERS
PAGE NO
1. INTRODUCTION. 1-2
1.1 Aim.
1.2 Objective
1.3 Scope
1.4 Advantages/Disadvantages.
1.5 Technology Used
1.6 System Requirements
2. OBJECTIVES.

3
3. ER DIAGRAM. 4

4. SCHEMA DIAGRAM. 5

5. DATA TABLES. 7-8

6. SOURCE CODES. 9-12

7. SNAPSHOTS. 13-22
7.1 Login page 13
7.2 Home page 14
7.3 Add Gym Operation 14
7.4 View Gym Operation 15
7.5 Update and Delete Gym Operation 16
7.6 Add Payment Area Operation 16
7.7 View Payment Area Operation 17
7.8 Update and Delete Payment Area Operation 18

7.9 Add Member Operation 18


7.10 View Member Operation 19
7.11 Update and Delete Member Operation 20
7.12 Add Trainer Operation 20
7.13 View Trainer Operation 21
7.14 Update and Delete Trainer Operation 22

8. CONCLUSION. 23
9. REFERENCES 24
Gym Management System DBMS MINI PROJECT

INTRODUCTION
Chapter-1

Gym Management System developed using PHP is an excellent solution for gyms with a
large/growing number of members, or ones serving elite clientele. This solution helps to
identify the user and manage their timely memberships.

In its working, each member is issued a membership card which is valid for a fixed
number of gym sessions, or for a particular period of time, or a combination of the two, totally
based on the payment policy. Once the time-frame or number of sessions expire, the machine
notifies the member about the payment of renewal.

Hence, the system reduces hassle and any chances of quarrels between the members and
the gym management. It can also generate multiple reports like monthly, weekly, daily, session
wise.

1.1 Aim

The main aim of designing this project is to get rid from manual entry and record
system and try to give easy and simple database management system for Gym
Management.

1.2 Objective

The main objective of this DBMS mini project is to construct good quality and

dynamic management system, in which this database is used to store the details of

gyms, payment areas, members and trainers

1.3 Scope
The software product “Gym Management System” will be an application that will be
Used for maintaining the records in an organized manner and to replace old paper work
system. This project aims at automating the gym related details for smooth working of
the database by automating almost all the activities. Updations and modifications will
be easily achievable and all the calculations and accounting work will be accurate.

Dept. of ISE, DBIT 2023-24 1


Gym Management System DBMS MINI PROJECT

1.4 ADVANTAGES/DISADVANTAGES

1.4.1 Advantages

This Project is beneficial for the following


1. User has complete control as it provides and accepts only appropriate and valid data.

2. Addition, deletion, modification of records as when needed.

3. Decreases the paper and labor work.


4. Manage the entire process.

5. User-friendly error messages are provided wherever necessary.

1.4.2 Disadvantages

1. It’s too tiring to give Computerized Timing.


2. Security Limitations.

1.5 Technology Used: -


Language : - PHP
Frontend : - HTML, CSS
Backend : - MYSQL (Xampp)

1.6 System Requirements: -


Minimum RAM : - 256 MB
Hard Disk :- 40 GB
Processor :- Intel Pentium 4
Operating System :- Windows 10

ISE, DBIT 2023-24 2


Gym Management System DBMS MINI PROJECT

Dept. of

Chapter-2

OBJECTIVES

• Add different gyms.

• Add payment areas.

• Add members to gym.

• Add different trainers of gym.

• View different gyms.

• View payment areas.

• View members to gym.

• View different trainers of gym.

• Update and delete different values of gyms, payments made, gym member’s
details and trainer’s information.

Dept. of ISE, DBIT 2023-24 3


Gym Management System DBMS MINI PROJECT

ISE, DBIT 2023-24 4


Gym Management System DBMS MINI PROJECT

Chapter-3
ER DIAGRAM

Fig3.1 ER DIAGRAM of Gym Management System.


The figure shows the representation of ER diagram of Gym Management System. It contains
the connection i.e., relation between the entities and the participation ratio. And primary key
is underlined as we see in figure and foreign keys are the keys that relate to primary key of

5
Gym Management System DBMS MINI PROJECT
______________________________________________________________________________________________
_

Dept of ISE, DBIT 2023-24

Chapter-4
SCHEMA DIAGRAM

Fig4.1 SCHEMA DIAGRAM of Gym Management System.

The figure shows the representation of Schema diagram of Gym Management System. It contains
all the tables used in this mini project and these tables are connected to each other with respect to
primary keys and foreign keys. Here primary keys are represented by underlining it and foreign
keys are connected to the table of that particular primary key is present.

Dept. of 6
Gym Management System DBMS MINI PROJECT

______________________________________________________________________________________________
_
ISE, DBIT 2023-24

Chapter-5

DATA TABLES
LoginTable

Sl.No. Field Name Data type Description

1 Id INT(11) Store the user id.

2 Uname VARCHAR(30) Store the user name.

3 Pwd VARCHAR(30) Store the password.

4 gym_id VARCHAR(20) Store the gym id.

GYM Table:

Sl.No. Field Name Data type Description

1 gym_id VARCHAR(20) Store the gym id.

2 gym_name VARCHAR(30) Store the gym name.

3 Address VARCHAR(150) Store the address.

4 Type VARCHAR(20) Store the type.

Payment Table:
Dept. of 7
Gym Management System DBMS MINI PROJECT

Sl.No. Field Name Data type Description

1 pay_id VARCHAR(20) Store the payment id.

2 Amount VARCHAR(20) Store the amount


paid.
3 gym_id VARCHAR(20) Store the gym id.

ISE, DBIT 2023-24

Dept. of 8
Gym Management System DBMS MINI PROJECT

Trainer Table:

Sl.No. Field Name Data type Description

1 trainer_id VARCHAR (20) Store the trainer id.

2 name Store the trainer name


VARCHAR(20)
3 time VARCHAR(10) Store the time.

4 mobileno VARCHAR(10) Store the mobile


number.

5 pay_id VARCHAR(20) Store the pay_id.

Member Table:

Sl.No. Field Name Data type Description

1 mem_id VARCHAR(20) Store the member id.

2 Name VARCHAR(30) Store the member


name.

3 Dob VARCHAR(20) Store the date of birth.

4 Age VARCHAR(20) Store the age.

5 Package VARCHAR(10) Store the package.

6 Mobileno VARCHAR(10) Store the mobile


number.

7 pay_id VARCHAR(20) Store the payment id.

8 trainer_id VARCHAR(20) Store the trainer id.

Dept. of 9
Gym Management System DBMS MINI PROJECT
ISE, DBIT 2023-24

Chapter-6

SOURCE CODES
6.1 INSERT STATEMENTS:

$errors = array(); if(isset($_REQUEST['gym'])) {

$gym_id = mysqli_real_escape_string($conn, $_REQUEST['id']);

$name = mysqli_real_escape_string($conn, $_REQUEST['name']);

$address = mysqli_real_escape_string($conn, $_REQUEST['address']);

$type = mysqli_real_escape_string($conn, $_REQUEST['type']);

$user_check_query = "SELECT * FROM gym WHERE gym_id='$gym_id' LIMIT 1";

$result = mysqli_query($conn, $user_check_query);

$user = mysqli_fetch_assoc($result); if ($user) {if ($user['gym_id'] === $gym_id)

{array_push($errors, "<div class='alert alert-warning'><b>ID already exists</b></div>");} }


if (count($errors)
== 0) {

$query = "INSERT INTO gym (gym_id,gym_name,address,type)

VALUES ('$gym_id','$name','$address','$type')";

$sql=mysqli_query($conn, $query) if ($sql) {

$msg="<div class='alert alert-success'><b>Gym added successfully</b></div>";}else{

$msg="<div class='alert alert-warning'><b>Gym not added</b></div>";

Dept. of ISE 10
, DBIT 2023-24
Gym Management System DBMS MINI PROJECT

6.2 DELETE STATEMENT:

$inf=$_GET['id'];

$sql_member="DELETE FROM member WHERE trainer_id=(select trainer_id from trainer where

pay_id=(select pay_id from payment where gym_id=(select gym_id from gym where gym_id='$inf')))";

$sql_query_mem=mysqli_query($conn,$sql_member); if($sql_query_mem) {

$sql_trainer="DELETE FROM trainer where pay_id=(select pay_id from payment wheregym_id=(select

gym_id from gym where gym_id='$inf'))";

$sql_query_trainer=mysqli_query($conn,$sql_trainer);

}else{
echo "not delted";
} if ($sql_query_trainer)
{

$sql_payment="DELETE FROM payment WHERE gym_id=(select gym_id from gymwhere gym_id='$inf')";

$sql_querypayment=mysqli_query($conn,$sql_payment);

}else{ echo "not deleted".mysqli_error($conn); } if($sql_querypayment) {

$sql_query="DELETE FROM gym WHERE gym_id='$inf'";

Dept. of ISE 11
Gym Management System DBMS MINI PROJECT

, DBIT 2023-24

Dept. of ISE 12
Gym Management System DBMS MINI PROJECT

$delete=mysqli_query($conn,$sql_query);if

($delete){ header("location:home.php?info=manage_gym");}else{echo

"error".mysqli_error($conn);}}else{ echo "not delete".mysqli_error($conn);

}
UPDATE STATEMENTS:

if (isset($_REQUEST['gym'])) {

$gym_id = mysqli_real_escape_string($conn, $_REQUEST['id']);

$name = mysqli_real_escape_string($conn, $_REQUEST['name']);

$address = mysqli_real_escape_string($conn, $_REQUEST['address']);

$type = mysqli_real_escape_string($conn, $_REQUEST['type']);

$update_query="update gym set gym_id='$gym_id',gym_name='$name',address='$address',type='$type' where


gym_id='".$_GET['id']."'";

$update_sql=mysqli_query($conn,$update_query);

$err="<div class='alert alert-success'><b>Gym Details updated</b></div>"; }

$con=mysqli_query($conn,"select * from gym where gym_id='".$_GET['id']."'");

$res=mysqli_fetch_assoc($con);

Dept. of ISE 13
Gym Management System DBMS MINI PROJECT

, DBIT 2023-24
Gym Management System DBMS MINI PROJECT

6.3 DISPLAY STATEMENTS

$all="SELECT * FROM gym";

$all_query=mysqli_query($conn,$all); if (mysqli_num_rows($all_query) > 0) { while($row =

mysqli_fetch_assoc($all_query)) {echo "<tr>";echo "<td>".$row['gym_id']."</td>"; echo

"<td>".$row['gym_name']."</td>";

echo "<td>".$row['address']."</td>";

echo "<td>".$row['type']."</td>"; echo"</tr><br>";}

} else { echo "0results";}

Dept. of ISE 14
, DBIT 2023-24

Chapter-7

SNAPSHOTS

7.1 Login Page: -

Figure 7.1 Login page


Admin needs to enter User name and Password and press Login. If username and password
correct then admin will be switched on to next page. If incorrect password then he is not able
to log in.

Dept. of ISE 15
Gym Management System DBMS MINI PROJECT

, DBIT 2023-24

Gym Management System DBMS MINI PROJECT

7.2 Home page: -

Figure 7.2 Home page

This is the home page. The operations included in this page are add and view for each of the
entities i.e gym, payment department, members and trainers. The admin can even logout of the
session anytime by pressing the log out icon.

Dept. of ISE 16
, DBIT 2023-24

7.3 add gym operation: -

Figure 7.3 add gym operation


This page is for adding gym details into the gym entity. Once added you get the message that
“Gym added successfully”. The admin can even logout of the session anytime by pressing the log
out icon.

Dept. of ISE 17
Gym Management System DBMS MINI PROJECT

, DBIT 2023-24

Dept. of ISE 18
Gym Management System DBMS MINI PROJECT

7.4 view gym operation: -

Figure 7.4 view gym operation


In this if all the values are inserted, if we press view gyms under Gym, then all the values are
displayed in the table. In this you can search a particular gym and then perform updation of
deletion operations on it.

Dept. of ISE -24 19


Gym Management System DBMS MINI PROJECT

, DBIT 2023

7.5 update and delete gym operation: -

Figure 7.5 update and delete gym operation


Once the values are inserted, we can type a particular gym in the search box and then either
update or delete that values, i.e we can perform deletion and updation operations on the inserted
values.

Dept. of ISE, DBIT 2023-24 20


Gym Management System DBMS MINI PROJECT

7.6 add payment area operation: -

Figure 7.6 add payment area operation


This page is for adding payment details into the payment entity. Once added you get the
message that “Payment area added successfully”. The admin can even logout of the session
anytime by pressing the log out icon.

Dept. of ISE, DBIT 2023-24 21


Gym Management System DBMS MINI PROJECT

Dept. of ISE, DBIT 2023-24 22


Gym Management System DBMS MINI PROJECT
7.7 view payment area operation: -

Figure 7.7 view payment area operation


In this if all the values are inserted, if we press view payment areas under Payment Department,
then all the values are displayed in the table. In this you can search a particular payment area
and then perform updation of deletion operations on it.

7.8 update and delete payment area operation: -

Dept. of ISE, DBIT 2023-24 23


Gym Management System DBMS MINI PROJECT
Figure 7.8 update and delete payment area operation
Once the values are inserted, we can type a particular payment area in the search box and then
either update or delete that values, i.e we can perform deletion and updation operations on the
inserted values.

7.9 add member operation: -

Dept. of ISE, DBIT 2023-24 24


Gym Management System DBMS MINI PROJECT
Figure 7.9 add member operation\
This page is for adding member details into the member entity. Once added you get the message that
“Member added successfully”. The admin can even logout of the sessionanytime by pressing the log
out icon.

Dept. of ISE, DBIT 2023-24 25


Gym Management System DBMS MINI PROJECT

7.10 view members operation: -

Fig 7.10 view member’s operation


In this if all the values are inserted, if we press view members under Members, then all the
values are displayed in the table. In this you can search a particular payment area and then
perform updation of deletion operations on it.

Dept. of 2023-24 26
Gym Management System DBMS MINI PROJECT
ISE, DBIT

7.11 update and delete member operation: -

Fig 7.11 update and delete member operation


Once the values are inserted, we can type a particular member in the search box and then
either update or delete that values, i.e we can perform deletion and updation operations on
theinserted values.

Dept. of ISE, DBIT 2023-24 27


Gym Management System DBMS MINI PROJECT

7.12 Add trainer Operation:

Fig 7.12 Add trainer Operation


This page is for adding trainer details into the trainer entity. Once added you get the message
that “Trainer added successfully”. The admin can even logout of the session anytime by
pressing the log out icon.

7.13 view trainer Operation:

Dept. of ISE, DBIT 2023-24 28


Gym Management System DBMS MINI PROJECT

Figure 7.13 view trainer Operation


In this if all the values are inserted, if we press view trainers under Trainers, then all the values
are displayed in the table. In this you can search a particular trainer and then perform updation
of deletion operations on it.

7.14 update and delete trainer operation: -

Dept. of ISE, DBIT 2023-24 29


Gym Management System DBMS MINI PROJECT
Fig 7.14 update and delete trainer operation
Once the values are inserted, we can type a particular trainer in the search box and then either
update or delete that values, i.e we can perform deletion and updation operations on the inserted
values.

Chapter-8

CONCLUSION

The Mini Project “Gym Management System” is designed in order reduce the burden of
maintaining bulk of records of gyms and their details in which Inserting, Retrieving and
updating the Details are easy when it is compared to the manual update and storing. This project
helps in maintaining the gym-related details in an Organized manner and to replace old paper
work system.

While developing this mini project we have learnt a lot about HTML/CSS/JS/PHP/MySQL and
working with database management, we have also learnt how to make the application user-
friendly (easy to use and handle) by hiding the complicated parts of it from the users.

Dept. of ISE, DBIT 2023-24 30


Gym Management System DBMS MINI PROJECT

Chapter-9

REFERENCES
*. https://getbootstrap.com/docs/4.0/

*. https://www.w3schools.com/sql

*. https://stackoverflow.com/

*. https://code.visualstudio.com/docs/languages/html

*. https://www.apachefriends.org/xampp

Dept. of ISE, DBIT 2023-24 31

You might also like