Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <?php
  2.  
  3. require "includes/DB.php";
  4. $stmt = $DB->prepare("SELECT * FROM jogos ORDER BY nome");
  5. $stmt->execute();
  6. $stmt->bind_result($idjogo, $nome, $plataforma, $desc);
  7. while ($stmt->fetch()){
  8. echo "<tr class='trtabela' data-id='",$idjogo,"'>";
  9. echo "<td>", $nome, "</td>";
  10. echo "<td>", $plataforma, "</td>";
  11. echo "<td>", $desc, "</td>";
  12. echo '<td style="text-align: center;"><i onclick="editar(', $idjogo, ', \'', $nome, '\', \'', $plataforma, '\', \'', $desc, '\')" class="fa fa-pencil-square-o" aria-hidden="true"></i></td>';
  13. echo "<td style='text-align: center;'><i onclick='apagar(",$idjogo,")' class='fa fa-trash' aria-hidden='true'></i></td>";
  14. echo "</tr>";
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement