The Elite Attorney
I built a law firm consultation booking and directory website in Core PHP and MySQL with separate dashboards for customers, lawyers, and admins.
Project Type
Aptech Vision Showcase Project
My Role
Full-Stack PHP & MySQL Developer
Year Built
2025
Tech Stack Used
Why This Project Was Needed
Booking legal consultations over phone calls made it easy to double-book lawyers and gave clients no way to check open slots or track their booking status.
Architecture, API & Database Implementation
Developed for the Aptech Vision showcase, The Elite Attorney lets visitors search lawyers by specialization, book consultation slots, and send inquiries, while lawyers manage their appointments and admins oversee lawyers, customers, services, and messages.
- Session-based login and registration with separate role checks for Admins, Lawyers, and Customers (`includes/config.php`)
- MySQL (`mysqli`) database storing users, lawyer profiles, practice services, appointment bookings, and contact messages
- Dedicated `admin/`, `lawyer/`, and customer `pages/` panels to approve bookings and update lawyer details
- Lawyer profile directory with photo uploads and practice-area filtering
What Was Hard & How I Solved It
Challenge: Keeping admins, lawyers, and customers strictly separated across different folders without breaking shared navigation.
Solution: I added `isAdmin()`, `isLawyer()`, and `isCustomer()` session helper guards in `includes/config.php` and reused shared header/footer includes.
Challenge: Handling user-submitted forms safely in plain PHP without framework ORM helpers.
Solution: I created a centralized `clean($conn, $data)` sanitization helper and escaped query inputs before saving appointments and messages to MySQL.
Key Features Shipped
- Separate portals for Customers, Lawyers, and Firm Admins in Core PHP
- MySQL-backed lawyer directory, consultation booking, and admin message inbox
- 1st Place project showcase at Aptech Internal Vision Competition
Next Case Study