The following are a couple of code snippets from some very basic PHP. I decided to add alternating row colours to make things a bit clearer. However the problem I have is that whatever I set the colour values to the rows alternate between a dark red and fuchsia background. This happens on both Windows and Linux and I cannot understand why?
$row_count = 1; // track rows
//$colour_odd = "#FFE680";
$colour_odd = "F0FFFF";
//$colour_even = "#FFF2BF";
$colour_even = "00FFFF";
while ($row = mysql_fetch_assoc($result)) {
$row_colour = (($row_count % 2) == 0) ? colour_even: colour_odd;
echo '
<tr bgcolor="' . $row_colour . '">
<td width="150" align="center">' . $row['FirstName'] . '</td>
<td align="center"><a href="' . $row['LastName'] . '">' .$row['LastName'] . '</a></td>
</tr>';
$row_count++;
}