Web technology

Question One

Write the corresponding HTML & PHP code that represents the following output.

Connect into Database
Create Database namely “SEUCompany”
Create Table namely “employee” with the following attribute
Develop insert function
{Id, Name, city, age}

After insertion done successfully.

The database should be updated as shown in the figure below

Question Two
What is a Servlet? Why servlet is mostly used?

Question Three
Write PHP Students' class as shown in the class diagram below.

Then create an object with your name, set the attributes to your information (Name-ID-Major), and print them using setters and getters functions.

Sample Solution