Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/11/2011, 05:22
Avatar de charlyalegret
charlyalegret
 
Fecha de Ingreso: septiembre-2011
Ubicación: Barcelona
Mensajes: 705
Antigüedad: 12 años, 7 meses
Puntos: 140
Respuesta: Cambiar fuente en función de datos en txt

algo así como después del while:
Código PHP:
Ver original
  1. $texto = fgets($archivo, 255);
  2. if ($texto == "cancelado")
  3.    echo "<font color=\"red\"> $texto</font>";
  4. elseif ($texto == "Activo")
  5.    echo "<font color=\"green\"> $texto</font>";
  6. etcetc
Saludos