I have the function below, which does the sum of date, with the value +2 days fixed:
echo date('d/m/Y', strtotime("+2 days",strtotime($ultima_data)));
It correctly sums up with the $ last_data value, but somehow needs to change the +2 days to a value that is in another variable, but so far I did not make it. I tried the following ways, without success:
echo date('d/m/Y', strtotime($dias_frequencia,strtotime($ultima_data)));
echo date('d/m/Y', strtotime("+'$ultima_frequencia'days",strtotime($ultima_data)));
In both cases there was no error, but returned values of 1969 ... Any ideas?