Menu

Exercise Going Create New Php File Called Exercise 1php File Connect Autoservice Database Q43873809

For this exercise, you are going to create a new PHP file calledexercise-1.php. This file will connect to your autoservice database(what you connected to in Practical Class 7) and display only 8records in a HTML table from the customer database table. Yourresulting table should look similar to figure 1.

You will have to determine what columns you will need from thecustomer database table to achieve figure 1. You can do this byreviewing the customer database table schema (figure 2).

For each client name, as seen in figure 1, you will have tocreate a hyperlink. This hyperlink must be unique so when a userclicks on the link they are redirected to exercise-2.php (the nextexercise) where a list of the cars associated with the customer arepresented. To achieve this, think about what data you will requireto make the link unique and is present in both customer andcustomercar database tables – refer to figure 2

Client Name Suburb Mary Hadalittlelamb Meadowville Buzz** Lightyear **IntergalacticHQ Campbelltown Bradbury Ilene Over Simple

customer customercar id INT(11) id INT(11) custNum INT(11) custNum INT(11) O title VARCHAR(20) rego VARCHAR(6) make VARCHAR(1

Could you please screenshot result and upload php code.

Client Name Suburb Mary Hadalittlelamb Meadowville Buzz** Lightyear **IntergalacticHQ Campbelltown Bradbury Ilene Over Simple Ton Under Standing Camden Figure 1 customer customercar id INT(11) id INT(11) custNum INT(11) custNum INT(11) O title VARCHAR(20) rego VARCHAR(6) make VARCHAR(15) firstName VARCHAR(20) familyName VARCHAR(30) contact VARCHAR(10) model VARCHAR(30) yearMan VARCHAR(4) email VARCHAR(60) Indexes houseNum VARCHAR(10) street VARCHAR(20) suburb VARCHAR(20) state VARCHAR(3) postCode VARCHAR(4) Indexes Figure 2 Show transcribed image text Client Name Suburb Mary Hadalittlelamb Meadowville Buzz** Lightyear **IntergalacticHQ Campbelltown Bradbury Ilene Over Simple Ton Under Standing Camden Figure 1
customer customercar id INT(11) id INT(11) custNum INT(11) custNum INT(11) O title VARCHAR(20) rego VARCHAR(6) make VARCHAR(15) firstName VARCHAR(20) familyName VARCHAR(30) contact VARCHAR(10) model VARCHAR(30) yearMan VARCHAR(4) email VARCHAR(60) Indexes houseNum VARCHAR(10) street VARCHAR(20) suburb VARCHAR(20) state VARCHAR(3) postCode VARCHAR(4) Indexes Figure 2

Expert Answer


Answer to For this exercise, you are going to create a new PHP file called exercise-1.php. This file will connect to your autoserv…

OR