Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/02/2011, 21:47
Avatar de jheckson
jheckson
 
Fecha de Ingreso: febrero-2011
Ubicación: $VE->Aragua['Maracay']
Mensajes: 109
Antigüedad: 14 años, 1 mes
Puntos: 8
Respuesta: ayuda con tabla

Código PHP:
Ver original
  1. while($row = mysql_fetch_array($result))
  2.           {
  3.               if($row['active'] == 0){$row['active'] = 'No';
  4.                }
  5.                 else
  6.                 {
  7.                 $row['active'] = 'Si';
  8.                  }
  9.  
  10.         $a=rand(0,255);
  11.     $b=rand(0,255);
  12.     $c=rand(0,255);
  13.  
  14.               echo "<tr>";
  15.               echo "<td><font color='$a,$b,$c'>".$row['fecha']."<font></td>";
  16.  
  17.               for($i = 1; $i<=4; $i++)
  18.               {
  19.               $a=rand(0,255);
  20.           $b=rand(0,255);
  21.           $c=rand(0,255);
  22.               echo "<td><font color='$a,$b,$c'>".$row['pro_'.$i.'']."<font></td>";
  23.               }
  24.               echo "<td><font color='$a,$b,$c'>".$row['active']."<font></td>";
  25.               echo "</tr>";
  26.  
  27.               }

Esto te va a generar colores aleatorio xD modificalo un poco si es necesario para que quede como quieres!