Skip to content

Commit

Permalink
lo
Browse files Browse the repository at this point in the history
  • Loading branch information
Anu1601CS committed Nov 3, 2018
1 parent 603eee6 commit 144a5de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controllers/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."'";
}
Expand Down
2 changes: 1 addition & 1 deletion views/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<div class="form-group">
<div class="col-xs-6">
<label for="location"><h4>Location</h4></label>
<input value="<?php echo $userDetails['location']; ?>" type="locatton" class="form-control" id="location" placeholder="somewhere" title="enter a location">
<input value="<?php echo $userDetails['address']; ?>" type="locatton" class="form-control" id="location" placeholder="somewhere" title="enter a location">
</div>
</div>

Expand Down

0 comments on commit 144a5de

Please sign in to comment.