From 144a5de04849f9f428aca0a291e30ef0a6bf2db6 Mon Sep 17 00:00:00 2001 From: Anu1601CS Date: Sat, 3 Nov 2018 19:05:01 +0530 Subject: [PATCH] lo --- controllers/ProfileController.php | 4 ++-- views/Profile.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/ProfileController.php b/controllers/ProfileController.php index 7434159..8fb7e06 100755 --- a/controllers/ProfileController.php +++ b/controllers/ProfileController.php @@ -94,13 +94,13 @@ public static function updateDate() if(empty(self::$password) || self::$password == NULL) { - $sql = "update users set name='". self::$name ."',location='". self::$location . "',institute='". self::$institute . "', phonenumber='". self::$phonenumber . "' + $sql = "update users set name='". self::$name ."',address='". self::$location . "',institute='". self::$institute . "', phonenumber='". self::$phonenumber . "' where username = '" . self::$username ."' AND email = '" . self::$useremail ."'"; } else { - $sql = "update users set name='". self::$name ."', password='". sha1('1601' . self::$password . 'iitp') ."', location='". self::$location . "', + $sql = "update users set name='". self::$name ."', password='". sha1('1601' . self::$password . 'iitp') ."', address='". self::$location . "', institute='". self::$institute ."', phonenumber='". self::$phonenumber ."' where username = '" . self::$username ."' AND email = '" . self::$useremail ."'"; } diff --git a/views/Profile.php b/views/Profile.php index 443c418..8d2b4de 100755 --- a/views/Profile.php +++ b/views/Profile.php @@ -154,7 +154,7 @@
- +