I have a table named tblworkouts. This table contains running workouts for up to three groups. That is to say a row may have a traininggroup_id of 1, 2, or 3. The issue I'm running into is that I want to display the all of the workouts for all groups, but only for the upcoming week, but not beyond or before.
If I run something like
select * from tblworkouts where workoutdate between '2003-03-25' and '2003-03-26'
then I get the desired results. For the first date I can simply create a variable called $today. The real problem I'm having is generating the value for the second value.
Any suggestions?