Professional Documents
Culture Documents
Assignmentdynweb
Assignmentdynweb
Assignmentdynweb
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.
Task 2:
Create a page display.php where you will retrieve the Surname and Name and present it in the following
format. [26 marks]
a)Create a form that takes text field parameters for username and password and submit the values to
the same script. [4 marks]
c) Add code to echo the values of the form submission from Question 6 a. [6 marks]