GERA DATAS AGENDADAS:  
DATA INICIAL(dd/mm/yyyy):
DATA FINAL(dd/mm/yyyy)
HORA INICIAL (hh:mm)
HORA FINAL (hh:mm)
N. DE AGENDAS
 
"; $c++; $d++; } $b++; $i++; } } function days_diff($dataa1, $datab1,$horaa1,$horab1) { $date_ini = mktime($horaa1[0],$horaa1[1],0,$dataa1[1],$dataa1[0],$dataa1[2]); $date_end = mktime($horab1[0],$horab1[1],0,$datab1[1],$datab1[0],$datab1[2]); $date_diff = ($date_end - $date_ini) / 86400; if($round != 0) return floor($date_diff)+1; else return $date_diff+1; } ?>