From 71294c334de8da39a450ed849b01a7f57a15d684 Mon Sep 17 00:00:00 2001 From: Nathaniel Hoffman Date: Mon, 13 Apr 2015 21:59:19 +0000 Subject: [PATCH] updated dao and login --- dao.php | 3 ++- login.php | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dao.php b/dao.php index aa35699..ddb56b1 100644 --- a/dao.php +++ b/dao.php @@ -81,4 +81,5 @@ public function saveBills ($id, $session, $title, $bill_id, $connection) { return $bill_id; } -} // end Dao \ No newline at end of file +} // end Dao +?> \ No newline at end of file diff --git a/login.php b/login.php index 1ce33f3..07dab00 100644 --- a/login.php +++ b/login.php @@ -12,12 +12,12 @@ try { $dao = new Dao(); - if ($dao - > check_login($name, $password)) { + if ($dao -> check_login($name, $password)) { $_SESSION["name"] = $name; - $dao - > redirect("index.php", "Login successful! Welcome back, $name."); + $dao -> redirect("index.php", "Login successful! Welcome back, $name."); } else { - $dao - > redirect("index.php", "Incorrect user name and/or password."); + $dao -> redirect("index.php", "Incorrect user name and/or password."); } } catch (Exception $e) {