Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `<th style="text-align:center;">Valor Total: R$ <?php
- if($anuncio['estado'] == 1){
- $sql = $pdo->prepare("SELECT SUM(valor) AS total FROM
- anuncios WHERE id_usuario = :id_usuario");
- $sql->bindValue(":id_usuario", $_SESSION['cLogin']);
- $sql->execute();
- $ln = $sql->fetchObject();
- echo number_format($ln->total);
- }
- ?></th>`
Add Comment
Please, Sign In to add comment