Welcome to the Home Goods Store!

What information would you like to view?

Product List

NameColorPriceOn Hand QuantityProduct Page
Bath TowelBlack5.7575http://MyStore.com/bathtowel.php
Wash ClothWhite0.99225http://MyStore.com/washcloth.php
Shower CurtainWhite11.9973http://MyStore.com/showercurtain.php
Pantry OrganizerClear3.9952http://MyStore.com/pantryorganizer.php
Storage JarClear5.9918http://MyStore.com/storagejar.php
Firm PillowWhite12.9924http://MyStore.com/pillow.php
ComforterWhite34.9912http://MyStore.com/comforter.php
Rollaway BedBlack249.993http://MyStore.com/rollaway.php

Total results: 8

Development Stages


  1. Identify the one-to-one, one-to-many and many-to-many relationships in the original table.
  2. Normalize Original Table by splitting into three related tables: Product, Manufacturer, Department.
  3. Create a mySQL database and add tables and data.
  4. Create php code blocks, starting with comments that describe the goal of each block.
  5. Create a form that allows user to choose a table to display results.
  6. Create switch statement check for user selection POST array varibales.
  7. Use debug statement to verify selected value is in POST variables
  8. Create displayData function. Use switch statment to determine which table format will be displayed.
  9. Use debug statement to verify table format is correct and SQL Query stament is functioning.
  10. Create while loop to iterate through query results and display as table rows.
  11. Verify that the displayed data matches my sample data in the database.