Skip to content

KavinthaD/PHP-Gym-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‹οΈ Sanzeus Gym Management Website

πŸš€ Personal Project: Developed as a foundational study in Full-Stack Development to master PHP and Relational Databases (MySQL).

A functional, database-driven website for a gym ("Sanzeus Gym") that handles user registrations, membership types, and health disclosures. This project focuses on the core principles of server-side scripting, database connectivity, and session management.

πŸš€ Key Features

  • Member Registration: Robust multi-field registration system capturing personal details, health conditions, and previous gym experience.
  • Dynamic Membership Management: Selection of different membership tiers processed server-side.
  • Data Persistence: Full integration with a MySQL database to store and manage member records.
  • Real-time Feedback: Implementation of PHP Sessions to provide users with success/error alerts upon form submission.
  • Security Basics: Use of Prepared Statements (mysqli_stmt) to prevent SQL injection and htmlspecialchars() for basic XSS protection.
  • Responsive UI: Built with Bootstrap 3 for cross-device compatibility and a professional aesthetic.

πŸ› οΈ Technical Highlights

  • Server-Side Logic: Pure PHP implementation for form processing, routing, and data validation.
  • Database Schema: Custom-designed relational table (registration) with diverse data types and unique constraints.
  • Modular Architecture: Utilizes PHP include() for reusable components like headers and footers, ensuring maintainability.
  • Interactive Elements: JavaScript integration for dynamic UI behavior (like navigation menu toggles).

πŸ“‚ Project Structure

β”œβ”€β”€ images/              # Visual assets and background images
β”œβ”€β”€ action_page.php      # Core PHP logic for database operations
β”œβ”€β”€ register.php         # Multi-field registration interface
β”œβ”€β”€ home.php             # Landing page with services overview
β”œβ”€β”€ sanzeus_gym.sql      # Database schema and initial structure
└── footer.php / header.php # Reusable UI components

βš™οΈ How to Setup

  1. Prerequisites: Install a local server environment (XAMPP, WAMP, or MAMP).
  2. Database:
    • Open PHPMyAdmin.
    • Create a database named sanzeus_gym.
    • Import the sanzeus_gym.sql file.
  3. Deployment:
    • Place the project folder in your server's root directory (e.g., htdocs).
    • Access via localhost/PHP-Gym-Website/home.php.

Built with ❀️ by Kavintha Dilshan

About

πŸ‹οΈ PHP Gym Management Website | Sanzeus Gym | Full-Stack Personal Learning Project | PHP, MySQL, Bootstrap 3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors