<?php
$r = $_POST['textfield7'];
$s = $_POST['PRODUCTO'];
$link = mysql_connect($db_host,$db_username,$db_password);
$qry = mysql_query("select Sumatoria_IBC from asesores where '".$r."' = asesores.codigo and '".$s."' = asesores.producto ",$link);
while ($mostrar = mysql_fetch_array($qry)){
if ($mostrar[Sumatoria_IBC] < $_POST['textfield9']){
?>
<font color="red"><?=$mostrar[Sumatoria_IBC]?></font>
<?
}
else {
?>
<font color="blue"><?=$mostrar[Sumatoria_IBC]?></font>
<?
}
}
mysql_free_result($qry);
echo mysql_error($link);
?>