How to put file path in database and display it in div?

Hello, is form loader file:
<?php
 $uploadfile = "gallery/".$_FILES['somename']['name'];
 move_uploaded_file($_FILES['somename']['tmp_name'], $uploadfile);
?>

How to place the uploaded file path in database and display it in:
the <div>
<img src="Here">
</div>
July 2nd 19 at 13:32
1 answer
July 2nd 19 at 13:34
To record the file name in the database, you must first learn to work with the database (connection and query execution), to determine the type of database (relational or nosql), connect work with database in a script, and Yes, not stored the original file names and their hashes.

Find more questions by tags PHPMySQL