π 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.
- 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 andhtmlspecialchars()for basic XSS protection. - Responsive UI: Built with Bootstrap 3 for cross-device compatibility and a professional aesthetic.
- 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).
βββ 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
- Prerequisites: Install a local server environment (XAMPP, WAMP, or MAMP).
- Database:
- Open PHPMyAdmin.
- Create a database named
sanzeus_gym. - Import the
sanzeus_gym.sqlfile.
- Deployment:
- Place the project folder in your server's root directory (e.g.,
htdocs). - Access via
localhost/PHP-Gym-Website/home.php.
- Place the project folder in your server's root directory (e.g.,
Built with β€οΈ by Kavintha Dilshan