Description
You need to implement a web application that is split in three parts, namely, Webpage, PHP and MySQL.
Each of them will be used accordingly to solve a simple problem described below. Remember to
implement the logic in the most secure way of your knowledge.
PHP
Implement a PHP function that reads in input a string from the user and store it in a table (in a field
called “Name”)
The function should be able to read the content of the file and store it in a table too (in a field called
“Content”)
Webpage
The user must be able to upload a text file (and nothing more)
The user must be able to input a string using a text box
The webpage prints in output the content of the database, that is, the content of each file with the
specified name
This should happen every time the page loads, even if the user has accessed the page for the
first time
MySQL
You need to create a database that contains at least a table to store the information in input to the
webpage
You need to submit your web application in one or more .php files, no other formats are allowed.
4/2/2020 Assignment #5 – PHP + MySQL
https://sjsu.instructure.com/courses/1358280/assignments/5267899 2/2