Hello!
I want to paint a table generated from a sql query.
I iterate a variable and want to paint the <TD> in grey when divided by 2 is zero. (Even number).
Which is the sintax of the equivalent function in PHP to C's mod ?
THanks a lot
below is a short example:
do { echo ($var++ % 2) ? "<TD>" : "<TD BGCOLOR=#999999>"; } while ($var < 5);
very similiar to the C syntax.
Very similar? I'd say '%' is identical to '%' :B