Hello guys, I made a ranking system with php at moment its look like this http://s14.postimage.org/cfvfowngh/vote1.png I want to add 3 different images for the top 3 like this one http://s13.postimage.org/6tywqlf93/vote2.png the coding at moment is like this
[php]
#ranking tr { border-bottom : 1px solid #FFF ; /*muda a cor depois, testa aí.*/ } .info #ranking tr td { font-size: 13px; } <div class="info">
<table id="ranking" width="1" align="center">
<?php
$db = Connection ( 'db_game' ) ;
$list = $db->query ( 'SELECT * FROM `resets` WHERE `resets` ORDER BY `resets` DESC LIMIT 5' )->fetchAll ( PDO::FETCH_ASSOC ) ;
?>
<tr align="center">
<td>Position</td>
<td>Nick</td>
<td>Resets</td>
</tr>
<?php
$i = 1 ;
foreach ( $list as $user ) {
echo '<tr align="center">' ;
echo '<td>', $i ,'</td>' ;
echo '<td>', $user [ 'name' ] ,'</td>' ;
echo '<td>', $user [ 'resets' ] ,'</td>' ;
echo '</tr>' ;
++ $i ;
}
?>
</table>
</div>
[/php]
I hope you guys can help me! Thank you!