You have a couple of things going on here...
First of all, let's tackle this line:
echo "<table width=100% bgcolor='\"$_POST['color']\" class='reportsborder' cellspacing=1 cellpadding=1>";
This line implies that "color" is coming from a previously posted page. If it is NOT, you should not be using $_POST. The question is... did you have a form with a field called "color" that the user clicked a submit button? If you didn't, then assign a color value to the variable $color. This will solve your second problem, which I'll mention in a moment. You were also missing the closing ' for bgcolor.
So, this line should be rewritten as such:
$color = "#FFFFFF";
echo "<table width=100% bgcolor='$color' class='reportsborder' cellspacing=1 cellpadding=1>";
The other part of your problem was in these lines:
if ($color == "#eeffee") $color = "#ffffff";
else $color = "#eeffee";
You didn't have $color set initially, but it was set for each subsequent line. Since we set $color for the table (and I assume you are using the same color for the alternating lines...), that should take care of that problem.
You have a few other things going on as well, Mike, like your while statement is missing a closing }... However, I am not going to give you any more help on this until you enclose your code in
tags. It's much too hard to read otherwise.
Before you use this board much longer, I strongly urge you to read the board [url=http://www.phpbuilder.com/board/showthread.php?s=&threadid=10218925]guidelines[/url].
Hope this helps... good luck.