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?
PHP Code:
$color = ($x % 2 == 0) "white" : "red";
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.
likewise, i can't seem to wrap my brain around the following piece. it seems somewhat similar to the one above with the
PHP Code:
$var == $var ? $var ="somthing" : $var="somthing"
but i just don't get what exactly is going on there.
PHP Code:
($cellBG==$cellBGN ? $cellBG="#CCCCCC" : $cellBG="#FFFFFF");
anybody care to endulge?
Bookmarks