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> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>

View File

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

View File

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

View File

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

View File

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