Alright, so I am a fairly new programmer and was wondering how this worked.
I have made a website that allows you to upload images to our server, it stores images in /images and the rest of the information is stored in a MySQL database.

I have also made a template for images to be shown. So there is one design for all images, that also includes a header, footer, ads etc.
Now to the question: How do I display the actual image here and how can do I make every image as a url.

Example: Now my images are like this: ---> This only displays my image
I want: ---> Display all content.

It's a bit hard to explain since I don't know how it actually works but if you have any questions go ahead and ask.
I appreciate any help I can get, also redirecting me to any tutorials that shows this would be equally great. Thanks!