Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8"/>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
- </head>
- <body>
- <?php
- $book=$_POST['book'];
- $title=$_POST['tytul'];
- $content=$_POST['tresc'];
- include "haslo.php";
- $c=pg_connect("host=sbazy user=s194082 dbname=s194082 password=$h");
- $insert="insert into notatki (ksiega, tytul, notatka) VALUES ('$book','$title','$content');";
- $wyk1=pg_exec($c, $insert);
- header("Location:./index.php?k=$book&n=lista");
- echo '
- <table class="table table-hover">
- <thead>
- <tr>
- <th scope="col">#</th>
- <th scope="col">Tytuł</th>
- <th scope="col">Treść</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th scope="row">'.$book.'</th>
- <td>'.$title.'</td>
- <td>'.$content.'</td>
- </tr>
- </tbody>
- </table>
- ';
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement