This commit is contained in:
Thies Mueller 2021-01-08 21:33:41 +01:00
parent bec02fa297
commit 8e8e740558
5 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,4 @@
<!doctype html>
<html lang="en">
<head>

View File

@ -1,3 +1,4 @@
<?php
session_start();
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');

View File

@ -1,3 +1,4 @@
<html>
<head>
<title>Profile Page</title>
@ -77,4 +78,4 @@ echo "</tr>";
<a href="logout.php"><button class="btn btn-danger">LOGOUT</button></a>
</body>
</html>
</html>

View File

@ -1,3 +1,4 @@
<?php
session_start();
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');

View File

@ -1,3 +1,4 @@
<html>
<head>
<title>Secure Area</title>
@ -18,4 +19,4 @@ echo "Hi ".$username."!";
<br><br><br><br>
<a href="logout.php"><button class="btn btn-danger">LOGOUT</button></a>
</body>
</html>
</html>