This is the only way I could figure this out.
Is this a good way to go about it? I dont know if I have errors or not.
Is there perhaps an easier way?

I tried to make it decide by even/odd #'s skipping 0
(I dont know how to work the even/odd thing very well so i hope its right)

PHP Code:
<?php
function row($y) {
    echo 
$y++;
    return 
$y;
}
$y 1;

if (
$y== ) {
    echo 
"#fff";
}
else {
    echo 
"#000";
}
?>
then place this in the page:
PHP Code:
<?php include_once ("color-rows.php"); ?>
And place this in the style:
PHP Code:
<div style="background-color:"<?php $yrow($y); ?>;">