Lets say the date range was 2005-04-25 to 2005-05-05, and todays date was 2005-04-28, then that means I want it to display the image file named 2005-04-27.jpg. If todays date was 2005-04-29, then it will display the image file named 2005-04-29.jpg instead.
...
Am I on the right track?
IMO, no, because it is not clear to me that you have fully specified the problem. Examples are essentially anecdotes; they are handy in some situations but they're not good enough to specify a task. Forget about programming for a second and imagine that you have hired a very expensive programmer to do this for you, and that you have to specify for him/her exactly what you want. Any mis-specification will end up costing you megabucks. Now, with this scenario in mind: what do you want to do?
Once you know exactly what you want you can hope to write a program to do it.
Of course, this is easier said than done, and often the process of programming significantly influences one's idea of what one wants, but still I think it is essential to start out with as clear and unambiguous specification of the task at hand as possible before one starts even thinking about programming it.
the lowliest monk
In reply to Re: Displaying a Image based on date range
by tlm
in thread Displaying a Image based on date range
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |