Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/06/2015, 16:56
angelica19
 
Fecha de Ingreso: junio-2015
Ubicación: Lima
Mensajes: 41
Antigüedad: 8 años, 10 meses
Puntos: 0
Respuesta: PHP - MySQL: Colocar en rojo nota desaprobada y azul nota aprobado

gracias! funcionó...

Código PHP:
Ver original
  1. <td><div align="center" style='color:<?php echo $color; ?>'><font FACE= "BOOKMAN OLD STYLE"><strong><?php
  2.     echo $row_Recordset1['ep'];
  3.            
  4.  $color = "red";
  5. if($row_Recordset1['ep'] >= 10){
  6.     $color = "blue";
  7. }
  8.  
  9.                
  10.      ?>
  11.      </strong></font></div></td>
  12.  
  13.  
  14.  
  15.  
  16.          
  17.   <td><div align="center">