Question: Write php scripts to update the values in a database. The database Company has a table named Client with these fields (Id, Name, Surname, Photo).
Write php scripts to update the values in a database. The database Company has a table named Client with these fields (Id, Name, Surname, Photo).
(10 points) Suppose that after you are logged in, a page with the Client data are shown on a table. You have to create a file viewClient.php which shows all clients data from the database. On the last column of the table there is a link for editing.
Note: The information to connect to database is: Server: localhost, DB: Company, Username: cen323, Pass: binf
(15 points) When clicking on the Edit a new page should be opened named edit.php, where the data of the client (Name, Surname, Photo) should be editable and after submission the data should be updated in the database.
Note: Dont forget to upload the new photo on the server.
(5 points) After the updating process, generate a file named logs.txt where you will store the date when the update was done, old Info and the updated info, as shown below:
18/2/2021 14:45 Old: Test, Me, images/old.jpg | New: Name, Surname, images/photo.jpg
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
