SundancerKid
Programmer
Code:
[COLOR=red] <tr bgcolor="<? if(bcmod($w_i,2)){echo "[/color][COLOR=#666666]grey[/color][COLOR=red]";}else {echo "[/color][COLOR=#0099ff]blue[/color][COLOR=red]";}?>"> [/color]
$w_i is the index I am using to determine what row I am on. 2 is a constant. BCMOD(x,y) will divide x by y. if it is divisable by 2 with no remainder then it is true and the color for the row would be grey, if there is a remainder then it is false then the color would be light blue.
builtin function -> BCMOD(index, value)
Red is the program
Grey is the True(Even Row) color
Light Blue is the False (Odd Row) color
Green are my comments