Question: For this exercise, you are going to create a new PHP file called exercise-2.php. This file will connect to your autoservice database (what you connected

For this exercise, you are going to create a new PHP file called exercise-2.php. This file will connect to your autoservice database (what you connected to in Practical Class 7) and display the clients name and the cars related to the client name clicked in exercise-1.php (Part of Exercise 1). You will need to use the customercar database table refer figure 2

The output should look like figure 3

For this exercise, you are going to create a new PHP file

called exercise-2.php. This file will connect to your autoservice database (what you

connected to in Practical Class 7) and display the clients name and

Could you please screenshot result and post php code

Client Name Suburb Mary Hadalittlelamb Meadowville Buzz** Lightyear **IntergalacticHQ Ilene Over Campbelltown Simple Ton Bradbury Under Standing Camden Cam Figure 1 customer id INT(11) custNum INT(11) title VARCHAR(20) firstName VARCHAR(20) familyName VARCHAR(30) contact VARCHAR(10) email VARCHAR(60) houseNum VARCHAR(10) street VARCHAR(20) suburb VARCHAR(20) state VARCHAR(3) postCode VARCHAR(4) Indexes u customercar id INT(11) custNum INT(11) rego VARCHAR(6) make VARCHAR(15) model VARCHAR(30) yearMan VARCHAR(4) Indexes Figure 2 Hint: To tackle this exercise focus on selecting all cars for a particular customer first, and then focus on getting the data from the GET request to perform your query. Remember, you should sanitise anything which is derived from the user! Cars for Simple Ton Rego: SMART, Make: Smart, Model: Fortwo Turbo Coupe, Year: 2010 Figure 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!