From ecd8c35b8a23e251d5bf6c341d95828a8026ea5e Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Tue, 15 Nov 2022 13:59:42 +0000 Subject: [PATCH] Nav bar now populates from categories db table --- layout.php | 20 +++++++++++++------- public/account/login.php | 8 ++++---- 2 files changed, 17 insertions(+), 11 deletions(-) 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 = [