ok,
worked that out by just running a seperate query that grabs the most recent and subtracting 19 from that.
on another note - is there anyway that I could figure out the monday of the current week?
e.g.
in psuedo code:
if today is note monday
$date = date of monday of following
week
curious if there is a simple solution to that. To put it in context, I'm trying to put together a scheduling page for a weekly schedule. All the old schedules will be stored and the current one is just the most recent 20 entries in the schedule db. My idea to accessing the past ones is, when a new schedule is created, write the starting row is is inserted at to the "dates" table and have to correlate to a date. Then provide a drop down where one can select the date and that would pull the necessary start id from the 'dates' table to query the schedule table with.
hope that made some sense 😉
thanks much!