COM372X—Programming assignment, week 7
(given 3/5 | due 3/12)

(syllabus | grading)

Assignment 7: Building a Back End

Purpose To build a PHP-MySQL back end to add, modify, or delete records to a database

The assignment: Although we designed the Book-O-Rama database using phpMyAdmin, populating and ten managing a database through phpMyAdmin would be slow and difficult. Here, we'll build the back end to the database, where an administrator (or a user) can directly access records in the database, to add new records, delete existing records, or to modify existing records.

At the same time, we'll finish the front end by allowing users to write orders via a front-end form.

For the back-end, you'll want to be able to add records for books and reviews, and to delete records from any table.

You will also want forms to allow you to search for customers by last and first name, and for books by isbn or author, allowing you to choose a customer or book record to be modified. These two forms would start with a select list, allowing you to choose a single customer or book, followed by a form populated with all of the fields for that customer or book. Changes in the customer or book field should be confirmed and when the user confirms the changes should be written to the database (using update).

Finally, you will want to be able to delete records from the books tables. Create a select list for each (2 forms), deleting books one at a time. Be sure to also delete any book reviews for books you no longer carry. (Question: Do you think you should also have a delete form for customers and their orders? Why or why not?)

Checklist: