Challenge – Retrieve data from a text file Using the help of the resources provided, and especially chapter 7 of the textbook and the examples on W3School website, you are asked to complete the...

Challenge – Retrieve data from a text file Using the help of the resources provided, and especially chapter 7 of the textbook and the examples on W3School website, you are asked to complete the following tasks: - Download “input.csv” excel file off of Brightspace o This file contains a very generic list of items and their descriptions. You need to update it with more detailed data pertaining to your service/product that you have in mind for the website you have been working on. You can add more entries and override any existing ones. o This is a comma separated file (.csv) and should you modify any of its content, keep in mind not to change the format. o Item # needs to be unique; i.e. no duplicates in item #. o Having 10 to 15 items in total is a good set of data to work with. o No field can contain a comma as part of its content. o Not every row needs to have values for every column; i.e. an item can have a brand but no make and model. - Revisit your solution (or solution provided) for Assignment #5 in Module 7, and rename index.html to index.php - Create a class, called Item, that has the following fields: item number, name, type, make, model, brand and description - Write PHP code to read input.csv file one line at a time and save its content in a two-dimensional array o The two-dimensional array would have the following format: array[line_number][content_of_line]  line_number: line number inside input.csv (you need to keep track of this using a counter)  content_of_line: a reference to an instance of class Item - You need to keep the search capability but instead of performing your search on a hidden list, you will now search on the content read from this file - Once you have some results of the search, just as in the W3School How To example, you need to display the results in a tabular format


Item #NameTypeMakeModelBrandDescription100Service OneServiceProgramming Consultation1 hour of consulting on web design concepts101Service TwoServiceProgramming Consultation5 hours of consulting on web design concepts102ProgCalcProductCasio2020Programmable calculator103ProgBookBookO'ReillyA book on web design conceptsItem #NameTypeMakeModelBrandDescription100Service OneServiceProgramming Consultation1 hour of consulting on web design concepts101Service TwoServiceProgramming Consultation5 hours of consulting on web design concepts102ProgCalcProductCasio2020Programmable calculator103ProgBookBookO'ReillyA book on web design conceptsItem #NameTypeMakeModelBrandDescription100Service OneServiceProgramming Consultation1 hour of consulting on web design concepts101Service TwoServiceProgramming Consultation5 hours of consulting on web design concepts102ProgCalcProductCasio2020Programmable calculator103ProgBookBookO'ReillyA book on web design conceptsItem #NameTypeMakeModelBrandDescription100Service OneServiceProgramming Consultation1 hour of consulting on web design concepts101Service TwoServiceProgramming Consultation5 hours of consulting on web design concepts102ProgCalcProductCasio2020Programmable calculator103ProgBookBookO'ReillyA book on web design concepts

Jul 31, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here