Visvesvaraya Technological University Belagavi-590 018, Karnataka
Visvesvaraya Technological University Belagavi-590 018, Karnataka
FITNESS DATABASE
Bachelor of Engineering
In Computer Science and Engineering
Submitted by
1
Jyothy Institute of Technology
Tataguni, Bengaluru-560082
Department of Computer Science and Engineering
CERTIFICATE
Certified that the mini project work entitled Zoo Management Database
carried out by KISHORE [1JT15CS027] bonafide student of Jyothy Institute
of Technology, in partial fulfilment for the award of Bachelor of Engineering
in Computer Science and Engineering department of the Visvesvaraya
Technological University, Belagavi during the year 2017-2018. It is certified
that all corrections/suggestions indicated for Internal Assessment have been
incorporated in the Report deposited in the departmental library. The project
report has been approved as it satisfies the academic requirements in respect of
Project work prescribed for the said Degree.
2
Mr. Manoj Kumar M Mr. Srinidhi Dr.Prabhanjan S
Guide, Asst. Professor Guide,Asst. Professor professor and HOD
Dept. Of CSE Dept. Of CSE Dept of CSE
ACKNOWLEDGEMENT
Firstly, we are very grateful to this esteemed institution Jyothy Institute of Technology
for providing us an opportunity to complete our project.
We express our sincere thanks to our Principal Dr. Gopalakrishna K for providing us with
adequate facilities to undertake this project.
We would like to thank Dr. Prabhanjan S Professor and Head of Computer Science and
Engineering Department for providing for his valuable support.
3
We would like to thank our guides Mr. Manoj Kumar M, Asst. Prof. and Mr. Srinidhi
K , Asst. Prof for their keen interest and guidance in preparing this work.
Finally, we would thank all our friends who have helped us directly or indirectly in this
project.
KISHORE [1JT15CS027]
4
ABSTRACT
In this mini project we have created one application which is easy to access and user
friendly. For this application we used the back end as SQL to store the data which is used in
the application and for the user interface we have used HTML & PHP.The customers can
see a brief view of what a Fitness center looks like and the benefits of going to the Fitness
center
Designed a database system named, Fitness database to maintain the details of the Fitness
center, Number of branches located in Bangalore, Managers for each branch,Staff available
in each branch, Expenses spent by our center for equipment's and finally the details about
the members who have joined our Fitness center .
The Website simplifies the work as well as reduces the efforts while doing it offline . In
this mini project we are able to save the database of all the Branches, Staff,
Expenses,Equipment's, Members Payment and Member data.
The Branch data includes Branch name , Address, Manager, Built date of the branch and
Phone No.
The Staff data includes Staff name, Address, Phone No, Date of Birth and Years of
experience the staff has.The salary and id for staff is not shown in HTML as it is not needed
for the Users who visit the Website.
The Expenses spent by the center is kept in back end as reference which has Expense No,
Expense Name and Amount.This is linked with each branch to keep track of expenses in
each branch.
The Customer data includes Name, Gender, Job, Address, Phone, Email, Start Date, End
Date , Member type(Normal, Silver, Gold, Platinum), Blood Group and Payment No.
5
The Website also contains Register form for customers who want to join. It also has offers
for the customers while joining the fitness center.The Contact us option is also available in
case a user wants to enquire about something, also benefits of joining the fitness center is
given.The career option is also available if anyone wants to be a staff or employee in our
center.
6
Table of Contents
7
CHAPTER 1
INTRODUCTION
8
INTRODUCTION
9
1.3 Introduction to Fitness Center Database
The world in the 21st century is growing up in the technology in every field such as
education, medicine, transport etc. The use of technology makes the world so faster and
easier than the early world and it releases the world from manual usage in the every field.
In the early days, the manual usage causes many mistakes by the user and administrative.
Using manual properties in the fields was not comfortable for the consumers because it was
slower than technical usages, caused wastages of the consumers time and contained many
formalities in usage.
This project of using technology in Fitness Centers for Administration, Maintenance of Staff
details, Customer details, Enquiry details,Expenses Details Now also most of the Fitness
centers are using manual programs in their Administration, Maintenance of Staff details,
Customer details, Enquiry details, Expenses Details This project was prepared for using
computerized programs for the above fields. This project was prepared for time saving
The scope of the project is clear to give a simple and attractive Website to simplify the work
as well as to reduce the efforts while doing it offline.
10
In this mini project we are able to save the database of all the Branches, Staff,
Expenses,Equipment's, Members Payment and Member data.
11
CHAPTER 2
DESIGN
12
Theory of ER Diagram
The E-R Diagram consists of 6 Tables namely
1)Gym
2)Staff
3)Expenses
4)Payment
5)Paying
6)Members
Gym Table Consists of Gym_id, Gname, Gaddress , Gphone , Gmanager and Built_date.
(Basically this table is for storing Branches , Location ,Phone No, Manager and Built date of
the Fitness Center)
Staff Table Consists of Staff_id, Sname , Sgender , Saddress , Sphone , Salary , Branch ,
SBdate and Gym_id
(This table gives us the staff details and which branch is the staff working in hence the
Gym_id is given a reference in this table)
Members Table Consists of Name, Gender , Job , Address, Phone, Email, Bdate , Startdate ,
Enddate , Member_type , Blood_group , Gym_id , Staff_id and Payment_no
13
(This table helps us keep track of Customer details like which branch the customer is
coming everyday and which trainer is handling the customer etc)
;
Gym_id, Staff_id, Exp_no,Payment_no and Email are all primary keys in tables:-
Gym
Staff
Expenses
Payment
Member
ER Diagram
14
Relational Schema Diagram
15
Activity Diagram
16
CHAPTER 3
IMPLEMENTATION
17
Creation of tables
18
Exp_no varchar(10) primary key,
Ename varchar(20),
Eamount varchar(10),
Quantity varchar(5)
);
19
Insertion of values
insert into Gym values('6001','King Fitness Banashankari','No.617, 100 Feet Ring Road,
Next to Devegowda Petrol Bunk, Banashankari, Bengaluru 560085','9448988906','Mr.
Santhosh','2016-01-16');
insert into Gym values('6003','King Fitness Basaveshwar Nagar','Veerbhadra, No. 326, 4th
Block, 3rd Stage, Basaveshwar Nagar, Bengaluru 560079','8042350501','Mr.
Sheshadri','2012-11-12');
insert into Gym values('6004','King Fitness HSR Layout','No. 2631, 27th Main, 1st Sector,
HSR Layout, Opp. CPWD Quarters, Bengaluru 560102','8042420606','Mr. Manoj','2014-
05-13');
insert into Gym values('6005','King Fitness Indiranagar','J K Plaza, 2nd Floor, 12th Main
Road, 788, HAL 2nd Stage, Indira Nagar, Bengaluru','7400409827','Mr. Arun','2013-08-
22');
insert into Gym values('6006','King Fitness JP Nagar','No. 67, 1st Floor, 15th Cross Road,
6th B Main Road, 3rd Phase, J P Nagar, Bengaluru 560078','8042420404','Mr.
Jayaprakash','2011-05-13');
insert into Staff values('100','Roopesh','Male','#210 5th main 2nd cross Banashankari 2nd
Stage','9845680451','30,000','Banashankari','1992-02-23','6001');
insert into Staff values('102','Malini','Female','#60 4th main 5th cross Banashankari 1st
Stage','8870650112','40,000','Banashankari','1994-06-16','6001');
20
insert into Staff values('200','Rohith','Male','#41 1st main 2nd cross
Basavanagudi','7765129055','50,000','Basavanagudi','1993-05-13','6002');
insert into Staff values('300','Nithin','Male','#81 3rd main 10th cross 3rd stage Basaveshwar
Nagar','9916547320','40,000','Basaveshwar','1990-11-03','6003');
insert into Staff values('301','Natasha','Female','#6 1st main 3rd cross 1st stage
Majestic','9740685431','50,000','Basaveshwar','1992-10-10','6003');
21
insert into Staff values('501','Rachel','Female','#11 1st main 2nd cross
Srinagar','88660450321','50,000','Indiranagar','1990-01-19','6005');
22
insert into Payment values('3008','May','6500');
23
insert into Expenses values('8006','Dipping Bars','2000','4');
24
insert into Paying values('8000','6003');
25
insert into Paying values('8002','6005');
26
insert into Members values('Bhoomika','Female','Nurse','#12 9th main 6th cross
Srinagar','9986528387','[email protected]','1997-02-23','2016-01-01','2017-01-
01','Silver','A +ve','6002','201','3002');
insert into Members values('Varshitha','Female','Tailor','#21 3rd main 8th cross near Bda
complex','8950650820','[email protected]','1997-02-23','2015-02-01','2016-02-
01','Gold','A +ve','6001','101','3004');
27
insert into Members values('Jacob','Male','Designer','#34 12th cross JP
nagar','7612650420','[email protected]','1997-11-06','2013-07-01','2014-01-
01','Normal','B -ve','6006','600','3011');
insert into Members values('Shaun','Male','Sports Master','#1 12th main 1th cross BTM
layout','9612850120','[email protected]','1996-05-17','2013-09-01','2014-09-01','Gold','B
+ve','6006','602','3017');
28
CHAPTER 4
RESULTS AND
SNAPSHOTS
29
Select * from Tables, Queries snapshots, Front end snapshots
30
Put figure name and number.
HOME PAGE:
31
ANIMALS PAGE:
Figure 3.4 Animal table information
32
CLASSIFICATION PAGE:
33
STAFF PAGE:
34
TOURISTS PAGE:
35
36
37
DONATION PAGE:
38
/ Queries to be added/
39
Conclusion
View tables are used to display all the components at once so that user can see
all the components of a Particular type at once. One can just select the
component and modify and remove the component.(based on the access
control of the person)
40
Features:
1. Clean separation of various components to facilitate easy modification and
revision.
2. All the data is maintained in a separate file to facilitate easy modification
3. All the data required for different operations is kept in a separate file.
4. Quick and easy saving and loading of database file.
41
42
43
44