I have a form that submits a file to the server in the folder uploads and also saves the file name(as stored in the server) as well as other file details in my database. Now what I'm trying to do, is create a HTML table that displays file details as well as the corresponding file(In hyperlink of course).
Is there any way to this? An idea I had is to link the file name to the corresponding file in my uploads/ directory but I have no idea on how to achieve that.
Here is my table uploaded_content where the form data is stored in my database
================================================
id |Description | filename |
------------------------------------------------
1 |Information | 3223-2323-4334-32-slajjjq.txt|
2 |Users | 3223-2323-4344-33-slik.txt |
================================================
And here is an example of how my uploads/
directory looks like (Notice that their names are saved in my database)
3223-2323-4334-32-slajjjq.txt
3223-2323-4344-33-slik.txt
So now I want to create a HTML table with the following columns
id |Description | filename |File