Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Produkty</title>
- <meta charset="UTF-8" />
- </head>
- <body>
- <h1>Lista rekordów</h1>
- <?php include "db_connect.php" ?>
- <?php
- $array = oci_parse($connection, "SELECT * FROM Osoby");
- oci_execute($array);
- echo "<table border='1'>\n";
- while ($row = oci_fetch_array($array,OCI_ASSOC+OCI_RETURN_NULLS)) {
- echo "<tr>\n";
- foreach ($row as $item) {
- echo " <td>" . ($item !== null ? htmlentities($item, ENT_QUOTES) : " ") .
- "</td>\n";
- }
- echo "</tr>\n";
- }
- oci_close($connection);
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement