query($query); list($total_players) = $db->fetch_row($result); $query= " SELECT SUM(kills), SUM(headshots), count(serverId) FROM hlstats_Servers WHERE game='$game' "; $result = $db->query($query); list($total_kills, $total_headshots, $total_servers) = $db->fetch_row($result); ?>
0) $hpk = sprintf('%.2f', ($total_headshots/$total_kills)*100); else $hpk = sprintf('%.2f', 0); echo 'Tracking '.number_format($total_players).' players with '.number_format($total_kills).' kills and '.number_format($total_headshots)." headshots ($hpk%) on $total_servers servers"; ?> |