I'm trying to do a leaderboard type thing. And I need the last iteration of the loop to be a different CSS style to the rest, I've looked around but I can't really find a precise answer.
My code:
$kills = mysql_query("SELECT victim,rankid FROM kills WHERE victim != 'Tony' ORDER BY id DESC LIMIT 0,10");
while($lasttenkilled = mysql_fetch_assoc($kills)){
$name = $lasttenkilled['victim'];
echo"<tr><td class='te'><font size=1> </font><a href=viewprofile.php?username=$name>$name</a></td></tr>";
}?>
I need the last <tr><td> to be <td class=endte><br>.
And yes, I'm using MySQL; I'm planning on changing to mysqli, so inb4.