Hi there,
I have a php script where i am putting all work hours into the database.
Now when i click work time start at 01:00 till 01:15 it shows 0 hours of work time
When i click work time 01:00 till 02:00 it shows 1 hour, that is good tho.
But i wanna have the result for example 1:15 hour.
This is my script:
$datum = date("d-m-Y",strtotime($start));
$startTijd = date("H:i",strtotime($start));
$eindTijd = date("H:i",strtotime($eind));
$totaal = $eindTijd - $startTijd;
$urenTotaal += $totaal;
<td width="100"><?=number_format($totaal, 2, ',', '.')?> uur</td>
<th colspan="4"><?=number_format($urenTotaal, 2, ',', '.')?> uur</th>
The times he will get from the database