I'm not getting the full amount.
View
Bank
Valuesthatareinthebank:
R$70,88$70.88
Valuethatappears
$210
Valuethathastoappear
R$212.64
Code
<?php$numerocontrato=trim($_GET["numerocontrato"]);
$consulta = $DB->query("SELECT sum(valordependente) as dep FROM cadastro_clientes where numerocontrato = $numerocontrato");
while ($linha = $consulta->fetch(PDO::FETCH_ASSOC)) {
echo "<h1>" . $linha['dep'] . "</h1>";
}
?>