Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Untitled Document</title>
- </head>
- <body>
- <?php require("db.php"); ?>
- <?php
- $id = $_GET['id'];
- if (isset($id))
- {
- $id = $_GET['id'];
- $wynik = DBArrayQuery("select * from dzial where id = $id ");
- }
- else
- {
- $wynik = DBArrayQuery("select * from dzial");
- }
- echo "<table border='1'>";
- foreach ($wynik as $wiersz) {
- echo "<tr>";
- foreach ($wiersz as $komorka) {
- echo "<td>$komorka</td>";
- }
- echo "</tr>";
- }
- echo "</table>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement