For my CPCS403 portfolio project, I connected my website to a MySQL database using PHP. This part of the project helped me understand how a website can store, retrieve, and display data dynamically.
Why I Used MySQL
MySQL was used to store important website data, such as feedback form submissions and project records. Instead of writing all data directly inside the HTML page, the website can fetch data from the database and display it through PHP.
Database Tables

The project includes a feedback table for storing user feedback. It also includes two related tables, categories and projects, which are used to display project records on the database page.
Using SQL JOIN
The database page uses an SQL JOIN query to connect the projects table with the categories table. This allows each project to be displayed together with its related category.
A good database makes a website more useful, organized, and dynamic.
Conclusion
This part of the project helped me practice database connection, server-side processing, and data display using PHP and MySQL. It also showed me how important databases are in real web applications.


