I’m building a website which will show comics.
I’d like to store each image in a backend file, and then have the site access those files and display them on the front end. I do not want to create a new page for each image.
Basically like this:

Similar to what you’d see here:
http://doctorcatmd.com/2011-01-10/doctor-cat
or
I’d like to know how I can achieve this. Do I need to learn a querying language? Or do I have to actually create a new page for each file I’d like to show…? Any advice would be helpful.
Thanks!
You don’t have to create a separate file containing HTML for every image, doing that is unnecessary and complete overkill. Instead, on the server-side you can generate the page based on a predefined template and insert content wherever you like. You can do this using a server-side scripting language such as PHP.
As far as determining what to insert (in your case an image), that’s typically done using parameters from the client, usually in the form of as HTTP GET variable. They’re (usually) the key-value pairs you see at the end of a URL after the question mark (eg. http://example.com/article.php?id=3454).
A very basic example of a PHP script that could do what you want is as follows.
A URL like http://example.com/comics.php?id=2 would show a page with the dilbert.png image on it.