Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Brendin Schlitzer
5,703 PointsDisplay images on my webpage for a predetermined time period
Hi
A little background on what I am trying to do.
I have a website that allows users to upload images, the images are stored in a file and a database entry is made with a unique id, start date and end date for when the image should be displayed as well as the file path to the image.
My problem is I have no idea how to retrieve said image and display it for the time period specified.
What would the best approach be or the best language for me to do this? Or are there any links that anyone is able to share?
If anyone can help I would greatly appreciate it.
1 Answer
Codin - Codesmite
8,600 PointsI personally would use PHP to call the images from the database and detect the date ranges.
You can learn PHP here on teamtreehouse, the PHP track also includes using PHP to access a database.
https://teamtreehouse.com/tracks/php-development
Python and Ruby on Rails tracks also availible on Teamtreehouse can also achieve the above.