Im making a top 10 leaderboard and ive added an option to hide yourself from the table if you dont want to be shown. This option removes you from the table completely. What I want to happen is instead of being removed from the table, have your username be replaced with "[HIDDEN]".
<table class="tborder" border="0" cellspacing="1" width="100%" cellpadding="4">
<tr class="thead">
<td>Position</td>
<td>Username</td>
<td>Points</td>
<td>Hide</td>
</tr>
<?php
$i=0;
if($num>0){
while ($i < $num) {
$username6=mysql_result($result4,$i,"username");
$points6=mysql_result($result4,$i,"points");
$hide6=mysql_result($result4,$i,"hide");
$i++;
echo "<tr class='trow'><td align='center'>".$i."</td><td align='center'>".$username6."</td><td align='center'>".$points6."</td><td align='center'>".$hide6."</td></tr>";
}
}
?>
</table>
Any help is appreciated. Regards.