Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/06/2018, 10:04
Avatar de zreep
zreep
 
Fecha de Ingreso: octubre-2009
Ubicación: Argentina
Mensajes: 534
Antigüedad: 14 años, 6 meses
Puntos: 12
Respuesta: Varias condiciones en if PHP

Hola Arturo, hice algo asi y funciona...

Código PHP:
<?php if($fila['uno'] <= 4) { ?><td style="text-align:center; color: red;"><?=$fila['uno'];?></td>
<?php } else { ?><td style="text-align:center;"><?=$fila['uno'];?></td><?php ?>
<?php 
if($fila['dos'] <= 4) { ?><td style="text-align:center; color: red;"><?=$fila['dos'];?></td>
<?php } else { ?><td style="text-align:center;"><?=$fila['dos'];?></td><?php ?>
<?php 
if($fila['tres'] <= 4) { ?><td style="text-align:center; color: red;"><?=$fila['tres'];?></td>
<?php } else { ?><td style="text-align:center;"><?=$fila['tres'];?></td><?php ?>
je...
__________________
Zreep