I've got a listing of articles for an ecommerce site that I'd like to enhance with pictures of some current products from the product database.
These are custom products, so they're not something that's in stock all the time.
I figured I'd write an include for each article that queries the database once a day to pull up different pictures (with link to product page)
Is that the best way to do it? And how would I base the execution of the query on time? I guess get a variable for the day, and when that variable is not the current day, execute the query...
I just don't know how to put that into code