It should be easy to do, but I have no clue even after days of googling.
I’ve create a simple web form using PHP which allows users to upload image files to server, and the information e.g. date, filename (unique, automatically renamed when uploaded), etc. is input into MySQL table create.
Can I know how to create a link on the ‘unique filename’ uploaded in MySQL field when displayed, so when user clicked, it will automatically open the server stored file per the unique filename?
Appreciate if anyone can help me on this. Thanks in advance.
Assuming your table contains fields
id,type(MIME type) anddata(binary data), this is a PHP script for that: