well the premise is to have a certain action happen every other time. I use Modulus but here is an easy to follow / understand example
$count=0;
while (whatever)//sql query ? who knows
{
if (count==0)
{
$bg=color Y;
}
else if (count==1)
{
$bg=color X;
$count=0;
}
$count++;
print table info with bgcolor=$bg;
}//end while
so what it does is initalize to 0 then go through its 0 so make bg Y then inc count then go through count=1 so bg =X count =0 then does it all over
hope this helps, give you the general idea.
something like that, should get you the general idea.
so those commands will alternate..