Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/02/2011, 21:09
arros
 
Fecha de Ingreso: noviembre-2009
Mensajes: 535
Antigüedad: 15 años, 4 meses
Puntos: 25
ayuda con tabla

buenas a todos,
quiero que se impreme cada tr con un color diferente, alguna idea
ponemos este ejemplo
Código PHP:
Ver original
  1. while($row = mysql_fetch_array($result))
  2.     {
  3.         if($row['active'] == 0){$row['active'] = 'No';}else{$row['active'] = 'Si';}
  4.         echo '<tr>';
  5.         echo '<td>'.$row['fecha'].'</td>';
  6.         for($i = 1; $i<=4; $i++){
  7.         echo '<td>'.$row['pro_'.$i.''].'</td>';
  8.         }
  9.         echo '<td>'.$row['active'].'</td>';
  10.         echo '</tr>';
  11.        
  12.     }
gracias