Guest User

Untitled

a guest
Apr 26th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $sql = "select * from tabela where codsegur = '7562315'";
  5.  
  6. $stm = $conexao->prepare($sql);
  7. $stm->execute();
  8. $count = $stm->rowCount();
  9.  
  10. if ($count > 0) {
  11. while($row = $stm->fetch()) {
  12.  
  13.  
  14.  
  15. echo "<a href=caminho/".$row['caminho']."></a>";
  16.  
  17. }
  18. }
Add Comment
Please, Sign In to add comment