ok so i used manipura's code and it worked perfectly. thanks alot.
could someone please explain either one of these 2 pieces of code for me?
i was trying to find some info on using % and how it relates to the rest of the code, but i found nothing in the php manual.
$color = ($x % 2 == 0) "white" : "red";
likewise, i can't seem to wrap my brain around the following piece. it seems somewhat similar to the one above with the
but i just don't get what exactly is going on there.
$var == $var ? $var ="somthing" : $var="somthing"
anybody care to endulge?
($cellBG==$cellBGN ? $cellBG="#CCCCCC" : $cellBG="#FFFFFF");