maybe with a session start...

stupid penguin
This commit is contained in:
Thies Mueller 2021-01-09 23:46:25 +01:00
parent 35250c3a1b
commit 70a64bba34
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@
</head> </head>
<body> <body>
<?php <?php
session_start();
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password'); $pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
function random_string() { function random_string() {

View File

@ -1,4 +1,5 @@
<?php <?php
session_start();
echo $_SESSION['userid']; echo $_SESSION['userid'];
echo "<br />"; echo "<br />";
echo $_SESSION['username']; echo $_SESSION['username'];