-2
all good? I am making an entry in the database in a certain column. However, when I try to use the WHILE function to show me the result, instead of it adding up it brings me all the results. However, I want to add up the result and display the final sum. See below the code I’m using.
<?php
$Fundos = mysqli_query($conexao, "SELECT * FROM saldo WHERE login = '$usuario'");
while($exibeFundos = mysqli_fetch_assoc($Fundos)){
$valor = $exibeFundos['valorSaldoAtivo'] + $exibeFundos['valorSaldoAtivo'];
?>
<?=$valor; ?>
<?php } ?>
"making a seat insert", insertion or is just selecting?
– Woss