Created
June 10, 2016 10:17
-
-
Save nprussell/a0de422c1f20fe2aa8c068bf2599fbda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//UPDATE QUERY | |
if(isset($_POST['update_users'])){ | |
$get_user = $_POST['username']; | |
$get_display_name = $_POST['display_name']; | |
$get_email = $_POST['email']; | |
$query = $connection->prepare(" | |
UPDATE users SET username = :username, display_name = :display_name, email = :email | |
WHERE id = :id | |
"); | |
$query->execute([ | |
'username'=>$get_user, | |
'display_name'=>$get_display_name, | |
'email'=>$get_email, | |
'id'=>$user_id | |
]); | |
header("Location: users.php"); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment