I think I'm having mental block today so any help as to how I can achieve my goal greatly appreciated.
Basically speaking what I am trying to do is schedule the execution of a page to update two values calculated from other fields within the same table for the whole table and update the table as such.
The execution part is not a problem it's getting the whole table updated that is. I have the following queries which work as individual elements using the _POST execution method from within a form for updating individual table rows but I want to do a global update of all table rows as a server side scheduled task.
Here's the code for the queries that I use in the form based version.
$query6=" select date_add(creation_date, interval retention_days day) as purge_date from tapes where tape_id='$id'";
$query8=" select purge_date, (to_days(purge_date) - to_days(now())) as days_remaining from tapes where tape_id='$id'";
Now all I need is a way to update the whole table for the purge_date and days_remaining fields using the above type query.
Any ideas?