Total play time

01/02/2015 17:52 _-Russian-_#1
Dell
01/05/2015 10:19 _-Russian-_#2
up
01/05/2015 14:57 raventh1984#3
Here

public function sectohrs($seconds) {
$Stunden = floor($seconds / 3600); $Rest1 = (($seconds / 3600) - $Stunden); $Minuten = floor($Rest1 * 60);
return $Stunden.'h '.$Minuten.'m';
}

you need to call the function like this

$Func->sectohrs($ranking['TotalPlayTime'])

Be aware that i am using classes so you need to change it but you can also do this

inside Ranking.php

Code:
function sectohrs($seconds) {
		$Stunden = floor($seconds / 3600); $Rest1 = (($seconds / 3600) - $Stunden); $Minuten = floor($Rest1 * 60);
		return $Stunden.'h '.$Minuten.'m';
	}
Call it like this
Code:
<div class="p15 center">'.sectohrs($result['TotalPlayTime']).'</div>
01/05/2015 23:17 _-Russian-_#4
//del
01/11/2015 15:32 iLogix3#5
I think its done

#closerequest