Question: 1. Class exercises: Main page (Figure 1. program name: index.html) & View all employees function. 1.1 If users click View all employees( call program: view_employee.php,

1. Class exercises: Main page (Figure 1. program name: index.html) & View all employees function.

1.1 If users click View all employees( call program: view_employee.php, Figure 4) , your program should

(i) Retrieve all employees from TECH3740. EMPLOYEE table and list all employees in HTML TABLE format as shown in Figure 4.

(ii) If the salary is NULL, print it in red color.

(iii) If Gender=M, print it in blue color, Gender=F, print it in red color.

(iv) Display the average salary of listed employees at the bottom of the employee table.

(v) A statement There are # employee(s) are in the database. should be displayed above the employee table.

1. Class exercises: Main page (Figure 1. program name: index.html) & View

Average salary: 3,100.0 Average salary: 3,100.0

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!