Guest User

Untitled

a guest
Jan 15th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.67 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.  
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  6. <link href="../../AppData/Local/Temp/Rar$DRa0.346/0837/style.css" rel="stylesheet" type="text/css" />
  7. <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  8. <link href="Stil1.css" rel="stylesheet" type="text/css" />
  9.  
  10. <title>company name</title>
  11.  
  12. </head>
  13.  
  14.     <body>
  15.        
  16.         <div id="container" align="center">
  17.         <div id="header">
  18.         <h1>I&scaron;&#269;i Dogodke </h1>
  19.        
  20.         <div id="nav">
  21.         <button type="button" onClick="location.href='index.php';">Vnost Uporabnika</button>
  22.         <button type="button" onClick="location.href='seznamOse.php';">Seznam Uporabnikov</button>
  23.         <button type="button" onClick="location.href='VnostDog.php';">Vnost Dogodka</button>
  24.         <button type="button" onClick="location.href='seznamDog.php';">Seznam Dogodkov</button>
  25.         <br/><br/><br/>
  26.        
  27.         <?php
  28.             $dbhost = 'localhost';
  29.             $dbuser = 'root';
  30.             $dbpass = '';
  31.             $dbname = 'janbaza';
  32.            
  33.             $conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
  34.            
  35.             //mysqli_select_db($dbname);
  36.        
  37.             $query = "SELECT * FROM osebe";
  38.                    
  39.             $result = mysqli_query($conn, $query);
  40.                
  41.             echo "<table>";
  42.                
  43.             while ($row = mysqli_fetch_array($result)) {
  44.                 echo "<tr><td>" . $row['priimek'] . "</td><td>" . $row['mail'] . "</td><td>" . $row['ime']  . "</td><td>" . $row['gender']  . "</td><tr>";
  45.             }
  46.             echo "</table>";
  47.             mysqli_close($conn);
  48.         ?>
  49.          
  50.         <div id="footer">
  51.         Jan St
  52.         </div>
  53.         </div>
  54.    
  55.     </body>
  56. </html>
Add Comment
Please, Sign In to add comment