03-22-2005, 03:40 AM
|
#2 (permalink)
|
|
The Contributor
Join Date: Mar 2005
Posts: 81
Thanks: 0
|
PHP Code:
//Initialize Vars
$altCounter=1;
do {
//if odd then white if even then black
$somecolor = (1&$altCounter) ? "white":"black";
echo '<tr><td style=background-color: $somecolor>some text</td></tr>';
$altCounter++;
} while {......}
This should work out for you and I'm sure others can suggest other methods as well. Basically just store
|
|
|
|