I have this code on PHP:
$sql = "SELECT SUM(HOUR(TIMEDIFF(HOURS.hour_enter, HOURS.hour_exit))) AS hours, SUM(MIN