🏋️♀️ FitnessHub
FitnessHub is a web application that helps people stay healthy by tracking their meals, workouts, BMI, goals, and achievements. It is built using PHP, MySQL, HTML, and CSS.
✨ Main Features
👤 User Accounts – Register, log in, and edit your profile. 🍽️ Meals – Add what you eat daily, see today’s meals, and check meal history. 🥗 Diet Plans – Create daily diet plans linked with meals. ⚖️ BMI & Goals – Calculate BMI, save BMI history, and set fitness goals. 🏋️ Workouts – Add exercises, create workout plans, log sessions and sets. 🏆 Achievements – Unlock achievements as you make progress. 📍 Locations – View gyms or fitness places near BRAC University. ⏰ Reminders – Set reminders for workouts or meals.
🛠️ Tools Used Frontend: HTML, CSS Backend: PHP Database: MySQL
📂 Project Files
index.php→ Homepage *register.php,login.php,logout.php→ User authenticationprofile.php,edit_profile.php→ Profile managementadd_meal.php,daily_meals.php,meal_history.php→ Meal trackingdiet_plan.php→ Diet planningbmi_calculator.php→ BMI calculation and historyworkout_manager.php→ Workout trackingachievements.php→ Achievementsperformance_report.php→ Reportslocations.php→ Fitness locationsdb_connect.php→ Database connectionfitnesshub.sql→ Database filestyle.css→ Styling
🗄️ Database (Main Tables)
- Users → user info
- Goals → fitness goals
- Food_Items → food with calories
- Diet_Plans → daily diet plans
- Meals → meals eaten
- BMI_History → BMI records
- Achievements & User_Achievements** → progress milestones
- Exercises & Workouts** → exercise tracking
- Locations → gyms and fitness places
- Reminders → user reminders
⚙️ How to Run
-
Copy project folder into your
htdocs(XAMPP) or server. -
Import
fitnesshub.sqlinto MySQL (via phpMyAdmin). -
Edit
db_connect.phpwith your MySQL username and password. -
Open in browser
✅ This project is a complete fitness tracker that combines diet, workouts, and goals into one simple system.