Static HTML pages, a shared stylesheet, and the published narrative for the project.
Local PHP demo pages, the database helper, configuration, SQL schema, and workflow notes.
Imported exercises from earlier work, removed from the main surface but still retained in the repository.
The root index.html forwards visitors into the static showcase for a clean Pages deploy.
Core contract
Accepts a customer payload and stores it after validation through a prepared statement.
Reads the stored rows from the customers table and renders them in a table view.
The schema lives in backend/sql/schema.sql and defines a single table with a timestamp.
The connection is centralized in backend/database.php and reads settings from backend/config.php.
Running locally
- Import backend/sql/schema.sql into MySQL.
- Set local credentials in backend/config.php.
- Serve the backend/ directory through PHP.
- Open backend/index.php in the browser.
| Concern | Current choice |
|---|---|
| Public hosting | GitHub Pages with static files from the repository. |
| Server runtime | Local PHP execution using the cleaned backend files. |
| Persistence | MySQL customer table with one simple entity model. |