added dummyuser

This commit is contained in:
root 2021-01-08 13:26:55 +01:00
parent 9601810ebc
commit 173c258b00
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
session_start(); session_start();
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'root', ''); $pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
if(isset($_GET['login'])) { if(isset($_GET['login'])) {
$email = $_POST['email']; $email = $_POST['email'];

View File

@ -1,6 +1,6 @@
<?php <?php
session_start(); session_start();
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'root', ''); $pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>

View File

@ -7,6 +7,6 @@ if(!isset($_SESSION['userid'])) {
$userid = $_SESSION['userid']; $userid = $_SESSION['userid'];
echo "Hi ".$userid; echo "Hi ".$userid;
echo "<br/>" echo "<br/>";
echo "This is secure now!" echo "This is secure now!";
?> ?>