diff --git a/layout.php b/layout.php index a1ff871..1a07b63 100644 --- a/layout.php +++ b/layout.php @@ -32,13 +32,19 @@ else { diff --git a/public/account/login.php b/public/account/login.php index daeb564..66b2853 100644 --- a/public/account/login.php +++ b/public/account/login.php @@ -10,10 +10,10 @@ $pageContent = '

Don\'t have an account?Click here to $stylesheet = '../assets/ibuy.css'; require '../../layout.php'; $server = 'mysql'; - $username = 'student'; - $password = 'student'; - $schema = 'ibuy'; - $pdo = new PDO('mysql:dbname=' . $schema . ';host=' . $server, $username, $password); +$username = 'student'; +$password = 'student'; +$schema = 'ibuy'; +$pdo = new PDO('mysql:dbname=' . $schema . ';host=' . $server, $username, $password); if (isset($_POST['submit'])) { $stmt = $pdo->prepare('SELECT * FROM users WHERE email = :email'); $values = [