l'ho modificato cosi'
Codice PHP:
$dal="$data_arrivo";
$al="$data_partenza"
$date_from_parts explode('/'$dal);
$date_to_parts explode('/'$al);
$ts_from mktime(000$date_from_parts[1], $date_from_parts[0], $date_from_parts[2]);
$ts_to mktime(000$date_to_parts[1], $date_to_parts[0], $date_to_parts[2]);
for (
$x $ts_from$x <= $ts_to$x += 86400){
$days[] = date('d/m/Y'$x);
}
$giorni"".count($days);
$notti $giorni-1;
if(
$notti>"1"){$mostra_notti="$notti Notti";} else { $mostra_notti="1 Notte";} 
sembra funzionare bene, ma siamo sicuri che i passaggi siano corretti?