Good, I have a div
in Bootstrap in blue and a% code in%. I would like to change the color of PHP
automatically to red if the content is less than div
.
<div class="col-lg-3 col-md-6">
<div class='<?php echo ($registros <95)? panel panel-red: panel panel-blue;?>'>
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-percent fa-5x"></i>
</div>
<div class="col-xs-9 text-right" style="font-size:55px;">
<?php
$sql = "SELECT ANSMensual1 FROM cauctti.datosglobales where Ambito like 'SSU Intern'";
$result = mysqli_query($connection,$sql);
while ($registros = mysqli_fetch_array($result))
{
?>
<?php echo $registros["ANSMensual1"] ?>
<?php
}
?>
</div>
</div>
</div>
<a href="detallmensual.php">
<div class="panel-footer">
<span class="pull-left">ANS MENSUAL SSU Intern</span>
<div class="clearfix"></div>
</div>
</a>
</div>
</div>