I got this date that I want to add a certain amount of days. I try to change this:
echo date('d-m-Y', strtotime($row_RSacessorios['Data_pedido']. ' + 10 days'));
Into this:
$numDays = $row_RSacessorios['Dias'];
echo date('d-m-Y', strtotime($row_RSacessorios['Data_pedido']. ' + ' . $numDays . ' days'));
My result is the same all the time "1-1-1970"
If I assume $numDays = 12 it gives me the correct date. mySQL date format is yyyy-mm-dd