Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link href="../../AppData/Local/Temp/Rar$DRa0.346/0837/style.css" rel="stylesheet" type="text/css" />
- <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
- <link href="Stil1.css" rel="stylesheet" type="text/css" />
- <title>company name</title>
- </head>
- <body>
- <div id="container" align="center">
- <div id="header">
- <h1>Išči Dogodke </h1>
- <div id="nav">
- <button type="button" onClick="location.href='index.php';">Vnost Uporabnika</button>
- <button type="button" onClick="location.href='seznamOse.php';">Seznam Uporabnikov</button>
- <button type="button" onClick="location.href='VnostDog.php';">Vnost Dogodka</button>
- <button type="button" onClick="location.href='seznamDog.php';">Seznam Dogodkov</button>
- <br/><br/><br/>
- <?php
- $dbhost = 'localhost';
- $dbuser = 'root';
- $dbpass = '';
- $dbname = 'janbaza';
- $conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
- //mysqli_select_db($dbname);
- $query = "SELECT * FROM osebe";
- $result = mysqli_query($conn, $query);
- echo "<table>";
- while ($row = mysqli_fetch_array($result)) {
- echo "<tr><td>" . $row['priimek'] . "</td><td>" . $row['mail'] . "</td><td>" . $row['ime'] . "</td><td>" . $row['gender'] . "</td><tr>";
- }
- echo "</table>";
- mysqli_close($conn);
- ?>
- <div id="footer">
- Jan St
- </div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment