Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
I have this code in a before record event to enter a future date column Expdate.$values['expdate']=date('Y-m-d', strtotime('+7 days'));I get the following error <<< Record was NOT added >>>Column 'Expdate' specified twiceAny pointers would be appreciated ThanksPeter G
Date plus 30 daysecho date("Y-m-d", strtotime('+30 days')); excerpt out of https://xlinesoft.com/blog/2014/11/12/datetime-handling-in-web-applications/
I think you should try the following:
$values['Expdate']=date('Y-m-d', strtotime('+7 days'));
Column names are case-sensitive.