Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/09/2009, 14:00
adanoi
 
Fecha de Ingreso: julio-2009
Mensajes: 8
Antigüedad: 14 años, 10 meses
Puntos: 0
Respuesta: mostrar un color dependiendo de una condicion

prueba asi

<tr>
<?php
$con = "SELECT cSuspendido FROM tconfiguradores_proveedores where cCodConf1=$codconf";
$re = mysql_query($con, $conexion);
if (cSuspendido == 0){

echo"<div style='background:#FF0000;height:20px;width:20px;' >&nbsp;</div>";

}
else
{
echo"<div style='background:#000066;height:20px;width:20px;' >&nbsp;</div>" $color = '';
}
?>
</tr>