codice:$data = '22/06/2007'; $d = 7; //intervallo in giorni $t = explode( '/', $data ); $t = mktime( 1, 1, 1, $t[1], $t[0], $t[2] ); $t = $t + $d * 60 * 60 * 24; echo date( 'd/m/Y', $t );
conviene comunque farlo direttamente con mySQL.
codice:$data = '22/06/2007'; $d = 7; //intervallo in giorni $t = explode( '/', $data ); $t = mktime( 1, 1, 1, $t[1], $t[0], $t[2] ); $t = $t + $d * 60 * 60 * 24; echo date( 'd/m/Y', $t );
conviene comunque farlo direttamente con mySQL.
think simple think ringo