SHARE
TWEET

#VAIDARCERTO

a guest May 25th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. include("classe/cadastro.php");
  4.  
  5. mysql_connect("localhost", "root", "");
  6. mysql_select_db("filmes");
  7.  
  8. $sql="SELECT * FROM `tb_filmes`";
  9.  
  10. $result = mysql_query($sql);
  11.  
  12. echo
  13. "<table border='1'>
  14. <tr>
  15. <th>titulo</th>
  16. <th>genero</th>
  17. <th>ano</th>
  18. <th>diretor</th>
  19. <th>estudio</th>
  20.  
  21. </tr>";
  22.  
  23. while($row = mysql_fetch_array($result))
  24. {
  25. echo "<tr>";
  26. echo "<td>" . $row['titulo'] . "</td>";
  27. echo "<td>" . $row['genero'] . "</td>";
  28. echo "<td>" . $row['ano'] . "</td>";
  29. echo "<td>" . $row['diretor'] . "</td>";
  30. echo "<td>" . $row['estudio'] . "</td>";
  31.  
  32. echo "</tr>";
  33. }
  34. echo "</table>";
  35. }
  36. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top