how to store image link in db and keep image in folder ?


#1

Can you help me with this?
how to store image link in db and keep image in folder ?


#2

https://www.w3schools.com/php/php_file_upload.asp

Upload the file, and store the path of where you save it to. It really is that easy. The hardest part is the actual upload, which is why I linked to a good base script.


#3

I will check thank you . I know how to upload to the folder, I just don’t know how to store file name in DB


#4

Just a simple insert statement when the move_file is a success.