added dummyuser
This commit is contained in:
parent
9601810ebc
commit
173c258b00
@ -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'];
|
||||||
|
@ -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>
|
||||||
|
@ -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!";
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user