Just in case the others don't work for you, here's how I alternate colors:
...
Do your mysql query, or whatever. var is your mysql table column.
...
$color = "#eeeeee";
while ($row = mysql_fetch_array($result))
{
$var = $row["var"];
echo "<table bgcolor=\"$color\"><tr><td>$var";
echo "</TD></TR></table>";
if ($color == "#eeeeee")
{
$color = "#ffffff";
}else{
$color = "#eeeeee";
}
}
Richie.
Web solutions:
http://3628757392/internet/ffa/