59 lines
1.2 KiB
PHP
59 lines
1.2 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<meta charset="utf-8">
|
|
<head>
|
|
<title>DunderMifflin</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body class="container">
|
|
<header>
|
|
<ul>
|
|
<li>
|
|
<a href="index.html">HTML</a>
|
|
</li>
|
|
<li>
|
|
<a href="mifflin.php">PHP</a>
|
|
</li>
|
|
</ul>
|
|
</header>
|
|
<div class="news">
|
|
NEWS!
|
|
</div>
|
|
<div class="navigation">
|
|
<ul>
|
|
<li>
|
|
SHOW TABLES
|
|
</li>
|
|
<li>
|
|
klick mich
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="search-bar">
|
|
<form>
|
|
<label for="input"> Search query: </label><br>
|
|
<input type="text" id="frame" name="input"><br>
|
|
</form>
|
|
</div>
|
|
<div class="result">
|
|
Here's what i found:
|
|
<?php
|
|
$servername = "localhost";
|
|
$username = "inventory";
|
|
$password = "password";
|
|
|
|
// Create connection
|
|
$conn = new mysqli($servername, $username, $password);
|
|
|
|
// Check connection
|
|
if ($conn->connect_error) {
|
|
die("Connection failed: " . $conn->connect_error);
|
|
}
|
|
echo "Connected successfully";
|
|
?>
|
|
</div>
|
|
<!--<footer>
|
|
Impress etc...
|
|
</footer>-->
|
|
</body>
|
|
</html>
|