Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("classe/cadastro.php");
- mysql_connect("localhost", "root", "");
- mysql_select_db("filmes");
- $sql="SELECT * FROM `tb_filmes`";
- $result = mysql_query($sql);
- echo
- "<table border='1'>
- <tr>
- <th>titulo</th>
- <th>genero</th>
- <th>ano</th>
- <th>diretor</th>
- <th>estudio</th>
- </tr>";
- while($row = mysql_fetch_array($result))
- {
- echo "<tr>";
- echo "<td>" . $row['titulo'] . "</td>";
- echo "<td>" . $row['genero'] . "</td>";
- echo "<td>" . $row['ano'] . "</td>";
- echo "<td>" . $row['diretor'] . "</td>";
- echo "<td>" . $row['estudio'] . "</td>";
- echo "</tr>";
- }
- echo "</table>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement