POTD 4: Database Interfacing

Due 17-Mar-2026 19-Mar-2026, 1pm EST

[Due to the severe weather, we had to move the class discussion and POTD down by one meeting. The due date for POTD 4 has been updated. Please refer to the University’s announcement on 16-Mar-2026.]


Purpose: Hands-on experience with database interfacing, using PHP and PDO to manipulate the database

Please note: This exercise focuses on making a web application interact with a database. For the fundamental concepts of web development, please refer to CS 4640 (Web Programming Language).

You may work alone or with 2-3 students in this course (max size=4).

In this activity, you will be exposed to simple web programming. This activity provides an overview of database programming, a very brief introduction to HTML, CSS, and PHP; as well as web deployment. Please note: our focus is on the database part, not the web programming part.

The intention of this activity is to help you get started with your project (if you plan to develop a web app using PHP). If you are already familiar with HTML, CSS, and PHP, feel free to use this activity to refresh your memory or simply do it for fun. If you do not plan to develop a PHP project, you may do this activity using any language of your choice.

Overall, you will

  1. Understand how database programming works in general (overview)
  2. Understand how web programming works in general. (Here is a very brief intro)
  3. Prepare your database
  4. Write a small web program to interact with your database

For this POTD, there are three options. Complete at least one option.


You may use a template (template.zip) as a starting point or create a PHP program from scratch. You will implement a PHP program to:

Example screen is shown below

sample visitor management system screen for potd4


Optional:

You may modify your interface the way you like. Get creative. Feel free to add additional elements you feel should be included and have fun!


To deploy and test your program



Grading rubric

[Total: 10 points]: Done (or provide evidence of your attempt, full or reasonable effort)

(-2.5 points) for 24 hours late (submitted after 17-Mar-2026 1pm EST, by 18-Mar-2026 1pm EST)
(-5 points) for 48 hours late (submitted after 18-Mar-2026 1pm EST, by 19-Mar-2026 1pm EST)

(-2.5 points) for 24 hours late (submitted after 19-Mar-2026 1pm EST, by 20-Mar-2026 1pm EST)
(-5 points) for 48 hours late (submitted after 20-Mar-2026 1pm EST, by 21-Mar-2026 1pm EST)


Submission



Copyright © 2026 Upsorn Praphamontripong
Released under the Creative Commons License CC-BY-NC-SA 4.0 license.
Last updated 2026-03-07 19:23