Assignment 3


Due Date: Thursday of Week 6
15 points

Lab Assignment

Now that you got a template, you should have your site in PHP files. From now on when we come to your site, it should load the homepage (index.php) showing the site and not links to different labs. So on your site there's no longer mention of the labs. The lab 2 consists of the whole site using PHP. Lab 3 will be either the Products or Services.

For this assignment, create a multidimensional array of your products or services. If you have products, do them. If you have services, do them. If you don't have any, come up with some products or services. So the array will be an array of arrays. The products (or services) can be represented as a two-dimensional array with each row representing an individual product and each column representing a stored product attribute. For example you can have code, description, and price. So you can have an array of code, description and price. The product is an array of the arrays of code, description and price.

Let say that we have cars: Honda, Toyota, Ford, etc.. The attributes are VIN, model, description, mileage, and price. So we can create the array Honda as the array of arrays. Each element of the Honda array is as follows:

array ('VIN' =>'12345678', 'Model'=>'civic', 'Description'=>'good condition', 'Mileage'=>'50000', 'Price'=>5000)
array ('VIN' =>'16543387', 'Model'=>'accord', 'Description'=>'very good condition', 'Mileage'=>'30000', 'Price'=>9000) ..
So Honda is a two-dimensional array.

We do the same for Toyota, Ford, etc. We can then create the cars array, which is an array of Honda, Toyota, Fords, etc. arrays. So now we have a three-dimensional array for cars.

You do the same for your products or services. Create a three-dimensional array for your products or services. Try to be creative. Display the data in a table with headings when the link Products or Services is clicked. Have some content too on the page.

Do not forget to add the link to the source code in the sources link that you created in lab 2.

Once you upload the files to Voyager, you can view it in the browser by going to http://voyager.deanza.edu/~yourvoyageraccountname/.

Email me in the format shown below to inform me that your lab is ready to be graded. I highly suggest you send yourself a courtesy copy (cc).

{Your name}
{Your Voyager account name (e.g. xyz36459) or the URL of your own site}
{Class: CIS200Y}
{Assignment #3}

I cannot grade if I don't receive your email.