A
A
Alexander2016-07-10 20:23:28
PHP
Alexander, 2016-07-10 20:23:28

How to "attach" an image to a specific post?

There is a post page. The posts are in order, new ones on top, old ones on the bottom, etc. They are written from the password-protected ADMIN page. It's not a problem to display the title with the post together. I want to be able to add an image to a post. In the same place, on the "create" page of the post. Those. wrote the title, content, uploaded the image, and all three components appeared in the line as a whole. I figured out how to upload images to the server. Further while I'm dumb. Tell me what to teach, read to get off the ground.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kovalsky, 2016-07-10
@PUNK_199

In the database, you need a table with data in the post_id, image_id format. And where you will store the images is another matter. possible in the file system, possible in the database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question