D
D
Daniil Sukhikh2018-04-10 17:45:25
PHP
Daniil Sukhikh, 2018-04-10 17:45:25

How to add pictures to the site?

I have a standard form for uploading files to the site, I want to upload pictures to the site through the form and display them in the photo album. I want to display all pictures through foreach. How to do something when uploading a file, the name and extension of the file was sent to the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-04-10
@danchiksux

How to do something when uploading a file, the name and extension of the file was sent to the database?

Take the file name and extension and send it to the database. If you want specifics, show your code that saves files. All data is in $_FILES if you haven't renamed it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question