Question
Overview: Demonstrate your ability to instantiate classes from text files and then display the content. Instructions: 1. You have been provided with a PHP file
Overview: Demonstrate your ability to instantiate classes from text files and then display the content. Instructions:
1. You have been provided with a PHP file (Chapter10-project03.php) that includes all the necessary markup. You have also been provided with two text files, customers.txt and orders.txt, that contain information on customers and their orders.
2. Define classes to encapsulate the data of a Customer and an Order. Each line in the file contains the following information: customer id, first name, last name, email, university, address, city, state, country, zip/postal, phone. Each line in the orders file contains the following data: order id, customer id, book ISBN, book title, book category.
3. Read the data in customers.txt and for each line in that file create a new instance of Customer in an array, and then display the customer data in a table.
4. Each customer name must be a link back to Chapter10-project03.php but with the customer id data as a query string.
5. When the user clicks on the customer name (i.e., makes a request to the same page but with the customer id passed as a query string), then read the data in orders.txt into an array of Order objects, and then display any matching order data for that customer. Be sure to display a message when there is no order information for the requested customer. Test: Test the page in the browser. Verify the correct orders are displayed for different customers. Also note that the customer name is displayed in the panel heading for the orders. NOTE: Sample output is provided in the next page. Try to run the code before you start working to see what the page looks like. At the top of the php file, add a comment including your name, section, and student id. The assignment should be completed individually. You should write the php code yourself and not by using any tools.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ALL THE ASSIGNMENT CODING IS IN THIS LINK PLEASE DOWNLOAD THE ZIP FILE IT CONTAINS ALL THE HTML AND PHP SCIPTING
https://files.fm/u/q2qq7777
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started