I have the following PHP code that fill table from mySQL database
<?php
while($res = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>".$res['id']."</td>";
echo "<td>".$res['name']."</td>";
echo "<td>".$res['number']."</td>";
echo "<td>".$res['nid']."</td>";
}
?>
Using CSS, How can I change background color for nid field?
I'm has trying the below, but it doesn't work:
echo "<td style="background-color:red" >".$res['nid']."</td>";