Como puedo obtener el porcentaje de 2 consultas en una sola, en este caso seria el de frags y deaths y añadirle una barra de progreso
$n = 1+$desde;
$query = $db->query('SELECT rankurl, ProfileImg, ProfileUrl, name, frags, rankname, deaths, headshots, cuchillo, captured, returned FROM '.$dbTable.' ORDER BY frags DESC LIMIT '.$desde.', '.$por_pagina.'') or die ("Error en la consulta: ".mysqli_error($db));
while ($top = $query->fetch_array(MYSQLI_ASSOC))
{
$avatar= str_replace("https://", "http://", $top["ProfileImg"]);
?>
<tr>
<td><?php echo "$n" ?></td>
<td><a href=<?php echo $top["ProfileUrl"]?> target="_blank"> <img src=<?php echo "$avatar"?> width="35" height="35"/></a></td>
<td><a><img src=<?php echo $top["rankurl"]?> width="22" height="22"/></a></td>
<td><?php echo substr($top['name'], 0, 15) ?></td>
<td><?php echo $top["rankname"] ?></td>
<td><?php echo $top["frags"] ?></td>
<td><?php echo $top["deaths"] ?></td>
<td><?php echo $top["headshots"] ?></td>
<td><?php echo $top["cuchillo"] ?></td>
<td><?php echo $top["captured"] ?></td>
<td><?php echo $top["returned"] ?></td>
</tr>
<?php
$n++;
}