Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8">
- </head>
- <body>
- <?php
- function dbakcja(){
- $host="localhost";
- $user="root";
- $password="";
- $dbname="baza";
- $sql = mysqli_connect($host,$user,$password,$dbname);
- }
- $mysql = dbakcja();
- foreach ($mysql->query('SELECT * from autorzy') as $wpis){
- echo "<h2>" .$wpis['IDAutor']."</h2>";
- echo "<h1>" .$wpis['Imie']."</h1>";
- echo "<h3>" .$wpis['Nazwisko']."</h3>";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement