What you’ll want to do is set up a table where you can store information on the images; specifically their paths. When a user hits a page that’s supposed to display one of those images, you’ll send a query to the database to pull the path information, then you’ll display that to the user.
For example; if your image is named 123456.jpg, and it’s stored in the /images folder in your webroot, your database entry could look like this:
Your PHP application would then pull the information like this:
Then, in your template, you’d just put in an <img> tag, with the src attribute set to the image’s path. Of course, in order for this to work, the place you’re storing the image needs to be a web server, with the path you’re storing them accessible to users.
Let me know if you need any additional help with it, or if you found any of this confusing.
Hi! Thanks for the help. The PHP part, I got that. But the DB part at the beginning seemed confusing. Can you share some writings/videos for those?
Also, how to set up that web server? are you talking about phpmyadmin part?
Wrong sub. You’re looking for r/PHPhelp.(See Rule 4)
Ah, sorry man!