M
|
mersintarim 6/18/2018 |
I'm trying to add a year to a field but get an error $values("OGO_end_date")=date_add($values["OGO_start_date"], INTERVAL 1 YEAR) syntax error, unexpected '1' (T_LNUMBER) in line 1 Whats wrong?
|
P
|
PaulM author 6/18/2018 |
Thank you, I changed it |
M
|
mersintarim 6/19/2018 |
you taking this error which events? |
lefty 6/20/2018 | |
you taking this error which events?
|
P
|
PaulM author 7/4/2018 |
Try this $values["OGO_end_date"]=date_add($values["OGO_start_date"], strtotime('+1 YEAR')); // php event
|