Assignmentdynweb

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Assignment Dynamic Web Development (40 marks)

Due date: 19 January 2021

Question 1

Write the code to enable a page to retrieve data from a table in mysql database. Perform the following
task. Write your php code for Task 1 and Task 2 .

Task 1:

Create a page db_login.php with the necessary parameters to connect to the database. Use Wildfire# as
password parameter and username as root.

Write the php code in the space provided. [4 marks]

Task 2:

Create a page display.php where you will retrieve the Surname and Name and present it in the following
format. [26 marks]

Write the php code in the space provided.

Question 2 (10 marks)

a)Create a form that takes text field parameters for username and password and submit the values to
the same script. [4 marks]

Write the code in the space provided.

c) Add code to echo the values of the form submission from Question 6 a. [6 marks]

Write the php code in the space provided.

You might also like