Project assignment 2: Displaying a php array of posts and comments

To do: Change the data to an appropriately indexed associative array.

Due Thursday, November 9th at 10 pm

Task 2: displaying blog posts

You are given a file post_data.php that you can include in your php code. The file defines an array $postarray, where each element represents a blog post. A blog post is in turn an array that consists of: Your task is to write a php program that creates a page with these entries. The page should be displayed using the CSS files designed in task 1. When you are generating HTML in your php code, make sure to insert appropriate HTML tags (for instance, em for the user name) and appropriate CSS classes if needed.

Task 3: displaying comments and user information

Here is the array of comments for one the post: comment_data.php. For this task you need to include both the post_data.php and the comment_data.php files into your php file so that you can get the text of the post as well. The page must display the post and all the comments.

You also need a page that displays user information: the login name and the display name. Since there isn't much test data, you can write the test data for thsi part on your own.

How to submit your assignment

To submit the assignment, just send me (by e-mail) locations and names of all files, including your CSS files. Please CC your project partner.
Your files must have comments indicating who worked on what. If you worked together, put a note about it in a comment.
Please do not modify your files after submission: you should continue your project with a separate copy of all files.

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.