ITM352 Logo
ITM352



HOME
Overview
Schedule
Assignments
Policies
Contact
 

Mini-assignment 3: Generate a Product Display

1. Get pictures of at least five different products. For this assignment, it's okay to directly link to pictures on other websites. For your assignment #1, however, you will need to save the pictures into the same folder that contains your php file. If you plan to download the pictures, please be sure to submit them along with your php file for this mini-assignment. Be sure that you do not hard-code the file path in your php code. The pictures should display regardless of what folder and which computer they are saved into.
2. Create an array to store product information, the image, price, and anything else you think is relevant.
3. Print out this array in an html table.

HINT: You will need to use a loop to do this correctly.

NOTE: The array should display the actual PICTURES, not the link for the image source.

Here is an example table*, but your table does not have to look exactly like this. Use a layout that you find appealing for your products!

Example output:

Product Description Price (each)
Small small gumball $0.05
Medium med gumball $0.15
Large large gumball $0.20
Fruit fruit gumball $0.06
Mango chili mango-chili
gumball
$0.06

* The images on the table above are linked other websites.  If there are empty boxes it is due to the image being removed or renamed on the linked sites.

Grading Criteria:

Comments 10%
Array includes pictures 20%
Array contains all information 40%
Headers for each category displayed 10%
Array used in HTML table 20%


Submission:

Please upload a single .php file or, if you are uploading both php and images, a single zip file.  Make sure that you name it: LastName_FirstName_Mini_Asst3.php (or .zip).

Upload completed assignment to your folder on itm-vm. Also upload your php (or zip) file to the Mini-Assignment 3 area on Laulima, and indicate there the URL of your assignment on itm-vm.