I have run into an issue with my Administrator panel. I have an issue where when you try to update the profile by having the users preferences, it tends to keep the user data the same. I do not have any issues.
Listed below is the code for user.php
<?php
include 'includes/db.php';
include 'includes/protect.php';
if(isset($_POST['submit_update'])){
$firstName = $_POST['fname'];
$lastName = $_POST['lname'];
$email = $_POST['email'];
$aboutMe = $_POST['about_me'];
$query = "UPDATE users
SET firstName = '$firstName',
lastName = '$lastName',
email = '$email',
about_me = '$aboutMe',
WHERE email = '$_SESSION[email]'";
$edit_query = mysqli_query($conn, $query);
}
?>