Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

image text in transcribed

Client Name Suburb Mary Hadalittlelamb Meadowville Buzz** Lightyear **IntergalacticHQ Ilene Over Campbelltown Simple Ton Bradbury Under Standing Camden 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 customercar id INT(11) custNum INT(11) rego VARCHAR(6) make VARCHAR(15) model VARCHAR(30) year Man VARCHAR(4) Indexes Figure 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago

Question

to encourage a drive for change by developing new ideas;

Answered: 1 week ago

Question

4 What are the alternatives to the competences approach?

Answered: 1 week ago