View Single Post
Old 03-22-2005, 03:40 AM   #2 (permalink)
AlEast
The Contributor
 
Join Date: Mar 2005
Posts: 81
Thanks: 0
AlEast is on a distinguished road
Default

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
__________________
NEWEDGE Services, Inc. - Developers of ClientExec
AlEast is offline  
Reply With Quote