I am making a a dealio for friends to post their bios on a site using XML and PHP. I want to display their names in a table and:::heres the part I need help on:::: I want the rows in the table to alternate between white background and maroon background. I came up with something like.......
$i = 0;
for(generate table expression thingy){
if($i) { print "<tr><td bgcolor=#000000>foo</td></tr>\n"; else print "<tr><td bgcolor=#ffffff>foo</td></tr>\n";
}
but I can't seem to make it work. ideas??
$i = 0;
for(generate table expression thingy){
if($i) { print "<tr><td bgcolor=#000000>foo</td></tr>\n"; else print "<tr><td bgcolor=#ffffff>foo</td></tr>\n";
}
but I can't seem to make it work. ideas??