Routine to validate if date is earlier than today if it is to change the state of the field to complete

0

I need to do a routine that checks if the end date of a certain event has already passed, ie if the date of the "end" field is less than today's date, it updates the "status" field to "finished".

I'm working with codeigniter 3.0

The sql code I know my problem is to cause this code to be run every day for example at 00:00 every day it would check and change the state. I still do not have code developed from this routine because I do not know how to do it myself

    
asked by anonymous 29.07.2015 / 18:41

0 answers