Hello,
I have various fields received, filed, entered, void which have date+time value feeding into the column.
Basically, these values will have click buttons next to them and worker will click one of those buttons to inform of the current status they are in.
What i want the worker to do is when they click any progress button it will stamp the date on the display.php next to the button (display.php is the page the worker sees) and then update the database table work_progress i.e if they clicked the entered button the date will stamp on the display.php page and at the same time send the updated date to the right column (filed, entered, void etc). the $timestamp being the date field on display.php.
I was wondering what the best approach for such a code would be.
Heres my sql script that i am thinking off to update and insert... i would love any better approach..
UPDATE work_progress
SET $timestamp = received OR
entered OR
filed OR
VOID
WHERE timestamp = INSERT statement to columns
actually, comparison would be difficult. as progression is from received to filed. so would that be better to compare with the previous date and time stamp? hmmm.. any help? cheers
😕