Guest User

Untitled

a guest
Oct 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. `<th style="text-align:center;">Valor Total: R$ <?php
  2. if($anuncio['estado'] == 1){
  3. $sql = $pdo->prepare("SELECT SUM(valor) AS total FROM
  4. anuncios WHERE id_usuario = :id_usuario");
  5. $sql->bindValue(":id_usuario", $_SESSION['cLogin']);
  6. $sql->execute();
  7.  
  8. $ln = $sql->fetchObject();
  9.  
  10. echo number_format($ln->total);
  11. }
  12. ?></th>`
Add Comment
Please, Sign In to add comment