Hi ,
I need a small help. I can’t find the error in my code.
I use in the onRecord event the following code
$date_end = sc_date(date(“Y.m.d”), “yyyy-mm-dd”, “+”, 0, 1, 0);
$amount_days_1 = sc_date_dif($date_end, ‘yyyy-mm-dd’, {REZ_FF_FP_1}, ‘yyyy-mm-dd’);
// only for test --> sc_alert({REZ_FF_FP_1} . ‘-’ . $date_end . ‘-’ . $amount_days_1);
if($amount_days_1 < 30)
{
- sc_field_style({REZ_FF_FP_1}, ‘#FF0000’, ‘12px’, ‘#FFFFFF’, ‘Arial, sans-serif’, ‘bold’);*
}
Now I got the following error message
Parse error: syntax error, unexpected ‘FF0000’ (T_STRING)
If I run only the the sc_field_style macro it is still working fine
Thanks in advance