Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Selecione todos os times cadastrados ordenado por código
- $consulta = $pdo->prepare("SELECT * FROM juiz order by codigo");
- $consulta->execute();
- echo "<table width=\"100%\" border>";
- // Mostra os candidatos.
- while ($row = $consulta->fetch(PDO::FETCH_ASSOC)) {
- echo "
- <tr>
- <td>
- <strong>Nome: $row[nome]</strong><p>
- <strong>Código: $row[codigo] - Idade: $row[idade]</strong>
- </td>
- <td align=\"center\"><a href=\"alterartimes.php?id_time=$row[codigo]\">Alterar</a></td>
- <td align=\"center\"><a href=\"excluirtimes.php?id_time=$row[codigo]\">Excluir</a></td>
- </tr>
- ";
- }
- echo "</table>";
- // Chama a função rodapé
- rodape();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement