Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. $selecao_visualizar = " SELECT * FROM projeto";
  2. $resultado_selecao = mysqli_query($conexao, $selecao_visualizar);
  3. echo "<table border='5'>";
  4. echo "<tr><td>";
  5. echo "<b>Nome</b>";
  6. echo "</td>";
  7. echo "<td>";
  8. echo "<b>Participante</b>";
  9. echo "<td>";
  10. echo "<b>Matrícula</b>";
  11. echo "<td>";
  12. echo "<b>Data de Nascimento</b>";
  13. echo "</td>";
  14. echo "<td>";
  15. echo "<b>CPF</b>";
  16. echo "</td>";
  17. echo "<td>";
  18. echo "<b>RG</b>";
  19. echo "</td>";
  20. echo "<td>";
  21. echo "<b>E-mail</b>";
  22. echo "</td>";
  23. echo "<td>";
  24. echo "<b>Telefone</b>";
  25. echo "</td>";
  26. echo "<td>";
  27. echo "<b>Endereço</b>";
  28. echo "</td>";
  29. echo "</tr>";
  30.  
  31. while ($linha=mysqli_fetch_assoc($resultado_selecao)){
  32. $nome = $linha["nome"];
  33. $participante = $linha["participante"];
  34. $matricula = $linha["matricula"];
  35. $data_de_nascimento = $linha["data_de_nascimento"];
  36. $cpf = $linha["cpf"];
  37. $rg = $linha["rg"];
  38. $email = $linha["email"];
  39. $telefone = $linha["telefone"];
  40. $endereco = $linha["endereco"];
  41.  
  42. echo"<tr>";
  43. echo"<td>";
  44. echo "$nome";
  45. echo "</td>";
  46. echo"<td>";
  47. echo "$participante";
  48. echo "</td>";
  49. echo "<td>";
  50. echo "$matricula";
  51. echo "</td>";
  52. echo "<td>";
  53. echo "$data_de_nascimento";
  54. echo "</td>";
  55. echo "<td>";
  56. echo "$cpf ";
  57. echo "</td>";
  58. echo"<td>";
  59. echo "$rg";
  60. echo "</td>";
  61. echo"<td>";
  62. echo "$email";
  63. echo "</td>";
  64. echo "<td>";
  65. echo "$telefone";
  66. echo "</td>";
  67. echo "<td>";
  68. echo "$endereco";
  69. echo "</td>";
  70. echo "</tr>";
  71.  
  72.  
  73.  
  74. }
  75.  
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement