Здравствуйте, как можно заставить скрипт окрасить ячейки которые содержат текст (X) В частности интересует один столбец
<th width='6%'>Loc</th>
в котором этот текст может появляться.
echo "
<table cellspacing='0' cellpadding='1' rules='all' border='1' width='80%'>
<thead>
<tr>
<th >Firstname</th>
<th >Position</th>
<th >Crew</th>
<th >Company</th>
<th >Van N</th>
<th >Locker</th>
<th>Cabin</th>
<th>Phone</th>
<th width='8%'>Passport</th>
<th>DOB</th>
<th width='6%'>Emp N</th>
<th width='6%'>Loc</th>
<th></th>
</tr>
</thead>";
while($row=mysqli_fetch_array($result)){
echo "<tr onClick='highlight(this);'>";
echo "<td><a href='edit.php?id=".$row['id']."'>". $row['name'] ."</a></td>";
echo "<td align='center'>" . $row['position'] . "</td>";
echo "<td align='center'>" . $row['crew'] . "</td>";
echo "<td align='center' width='10%'>" . $row['company'] . "</td>";
echo "<td align='center' width='6%'>" . $row['vann'] . "</td>";
echo "<td align='center'width='6%'>" . $row['locker'] . "</td>";
echo "<td align='center'>" . $row['cabin'] . "</td>";
echo "<td align='center'>" . $row['phone'] . "</td>";
echo "<td align='center'>" . $row['passport'] . "</td>";
echo "<td align='center'>" . $row['dob'] . "</td>";
echo "<td align='center'>" . $row['empn'] . "</td>";
echo "<td align='center'>" . $row['location'] . "</td>";
echo '<td align="center"><a href="delete.php?id=' . $row['id'] . '">Delete</a></td>';
echo "</tr>";
}
echo "</table>";