CS 3305-01 Web Programming 2 - AY2025-T4 - Unit 4 (LJ)
CS 3305-01 Web Programming 2 - AY2025-T4 - Unit 4 (LJ)
Reflection:
This unit was both challenging and rewarding. I had previously worked with
databases in other contexts, but integrating PHP with MySQL made me realize how much
more interactive and efficient dynamic websites can be. Writing PHP code to connect to a
database, run a query, and retrieve results gave me a sense of how backend logic powers
the front-end experiences we often take for granted. For instance, displaying user data
from a database using $row['FirstName'] was a simple but powerful revelation.
One thing that stood out to me was how PHP can generate personalized content,
like PDFs and images, depending on user data. This really surprised me and changed my
perception of PHP, from just a web scripting language to a tool that can manage full-scale
document automation and reporting systems. I realized this could be especially useful in
sectors like healthcare, finance, or education, where systems need to output user-specific
information dynamically.
I found the reading from the PHP Manual (Cowburn, 2018) quite informative,
especially the sections that explained the internal workings of the PHP core and function
references. While these readings were technical, they helped me connect the dots between
what I was coding and what was happening behind the scenes. I also reviewed examples
on W3Schools and Tutorialspoint, which clarified function usage and common syntax
pitfalls.
This week taught me to think more holistically about how a web application
handles data, from database retrieval to dynamic content delivery. I gained deeper
confidence in writing functions that interact with databases securely and efficiently. I also
learned the importance of sanitizing inputs and writing efficient SQL queries to avoid
performance issues.
Moving Forward: