Advertisement
Guest User

Untitled

a guest
May 26th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. // Selecione todos os times cadastrados ordenado por código
  2. $consulta = $pdo->prepare("SELECT * FROM juiz order by codigo");
  3. $consulta->execute();
  4.  
  5. echo "<table width=\"100%\" border>";
  6. // Mostra os candidatos.
  7. while ($row = $consulta->fetch(PDO::FETCH_ASSOC)) {
  8. echo "
  9. <tr>
  10. <td>
  11. <strong>Nome: $row[nome]</strong><p>
  12. <strong>Código: $row[codigo] - Idade: $row[idade]</strong>
  13. </td>
  14. <td align=\"center\"><a href=\"alterartimes.php?id_time=$row[codigo]\">Alterar</a></td>
  15. <td align=\"center\"><a href=\"excluirtimes.php?id_time=$row[codigo]\">Excluir</a></td>
  16. </tr>
  17. ";
  18. }
  19.  
  20. echo "</table>";
  21.  
  22. // Chama a função rodapé
  23. rodape();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement