Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "includes/DB.php";
- $stmt = $DB->prepare("SELECT * FROM jogos ORDER BY nome");
- $stmt->execute();
- $stmt->bind_result($idjogo, $nome, $plataforma, $desc);
- while ($stmt->fetch()){
- echo "<tr class='trtabela' data-id='",$idjogo,"'>";
- echo "<td>", $nome, "</td>";
- echo "<td>", $plataforma, "</td>";
- echo "<td>", $desc, "</td>";
- echo '<td style="text-align: center;"><i onclick="editar(', $idjogo, ', \'', $nome, '\', \'', $plataforma, '\', \'', $desc, '\')" class="fa fa-pencil-square-o" aria-hidden="true"></i></td>';
- echo "<td style='text-align: center;'><i onclick='apagar(",$idjogo,")' class='fa fa-trash' aria-hidden='true'></i></td>";
- echo "</tr>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement