Posts by Gilson Soares • 1 point
1 post
-
0
votes3
answers1602
viewsA: How to add a database column using PDO
$soma = $pdo->query("SELECT SUM(valor) AS total FROM minha_tabela")->fetchColumn(); print number_format($soma, 2, ",","."); It saved a whole afternoon’s work!!!! Thank you…