[eluser]slowgary[/eluser]
That doesn't make sense newbie. If you're fetching results from within 3 weeks ago, you WOULD include the results from within 1 week ago. You WOULD NOT omit results from within 1 week ago, since they are still from within 3 weeks ago. If a user selects the "3 weeks" option and doesn't get a particular result they're looking for from 6 days ago, your software is broken. But you do what you want to do.
I won't be responding to any more of your posts as I feel you should be posting this in the job board and offering someone skilled a paycheck for completing it. You are not doing what a developer would do, which is to seek out answers to problems. You are asking over and over and over for someone else to write each line of your application.
No hard feelings, I just don't agree with your criteria for what warrants posting on these forums.