I'm struggling to think of a way to make a system which every time a new day starts, it inserts the date into a new row.
Something like
date | field1 | field2
20/1/2015 | 0 | 0
21/1/2015 | 0 | 0
22/1/2015 | 0 | 0
23/1/2015 | 0 | 0
But, ontop of the insertion of the automatic new date entry, every time the user enters the site I need them to be able to change the data of the date.
E.G. If I logged on today, 24/01/2015, there would be a row in the database that contains the date. I then can change the field of today's field1 / field2 (I can do this bit, I just need to know how to make it edit only the day it is on). But, I cannot edit previous days and I cannot enter future days.
Thanks for the help.
Something like
date | field1 | field2
20/1/2015 | 0 | 0
21/1/2015 | 0 | 0
22/1/2015 | 0 | 0
23/1/2015 | 0 | 0
But, ontop of the insertion of the automatic new date entry, every time the user enters the site I need them to be able to change the data of the date.
E.G. If I logged on today, 24/01/2015, there would be a row in the database that contains the date. I then can change the field of today's field1 / field2 (I can do this bit, I just need to know how to make it edit only the day it is on). But, I cannot edit previous days and I cannot enter future days.
Thanks for the help.