0
I own this code:
<table class"is-bordered is-striped is-narrow is-hoverable is-fullwidth">
<tr align="center" id="title">
<td>POSIÇÃO</td>
<td>NOME</td>
<td>MATOU</td>
<td>MORREU</td>
</tr>
<?PHP
$tabela = mysqli_query($connecta, "SELECT * FROM pvpm_data ORDER BY kills DESC LIMIT 10");
$pos = 1;
while($pvp = mysqli_fetch_assoc($tabela)){
echo '
<tr align="center" id="player">
<td>'.$pos.'º</td>
<td>'.$pvp['name'].'</td>
<td>'.$pvp['kills'].'</td>
<td>'.$pvp['dies'].'</td>
</tr>
';
$pos++;
}
?>
</table>
It refers to a ranking of a game, and I would like the first 3 placements to receive an image of a medal before the numbering of the position, ex: gold medal for first, silver for second and bronze for third. It is set to 10 placements.
Thank you very much friend, helped me a lot.
– Artur Vale
I left an alternative version to facilitate reading
– Bacco
Boy, you are 10 even.
– Artur Vale