how can i set the table tr background color according to same value in one row ?
<?php
$result = mysql_query("SELECT * FROM `status` where username ='".$UserName."' ",$conn);
while($row=mysql_fetch_array($result))
{
echo '
<tr style="'.$bgcolor.'">
<td>
'.$row["Uv"].'
</td>
<td>
'.$row["Su"].'
</td>
<td> '.$row["Status"].' </td>
</tr> ';
}
?>
How the rows should look like i wan't change color according to same uv like hmsid20161812(blue color), hmsid20161815(brown color), hmsid20161810 (yellow color) means we give color code or name in array but print according to uv.