I actually recommend using CSS classes instead of fixed colours.
Instead of bgcolor="white" and bgcolor="grey", use class="even" and class="odd".
That way you can change the appearance using a single stylesheet, rather than modifying your PHP code every time you want to try a new look.
(CSS 3 introduces selectors that allow modulo operations, but I don't think any browsers support CSS 3 yet. Which is a shame.)