diff options
| author | Debulois <quentin@debulois.fr> | 2022-02-03 13:02:21 +0100 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-02-03 13:02:21 +0100 |
| commit | 5ddf8de3691fde866c5a48b440cffa2990b2014c (patch) | |
| tree | e19215cb4a699ed767c731f65d3f796b4435530a /Wrapper/Functions/func_info.php | |
Initial commit
Diffstat (limited to 'Wrapper/Functions/func_info.php')
| -rw-r--r-- | Wrapper/Functions/func_info.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Wrapper/Functions/func_info.php b/Wrapper/Functions/func_info.php new file mode 100644 index 0000000..d883d86 --- /dev/null +++ b/Wrapper/Functions/func_info.php @@ -0,0 +1,18 @@ +<?php +// **************************************************************************** +// Description: Fonction de modifications des informations de l'utilisateur par ID +// **************************************************************************** +function modify_user_info($lastname, $firstname, $job, $degree, + $capabilty, $description, $phoneNumber, + $adress, $zipCode, $city, $userId) { + $dbuser = new DbUser; + $dbuser->update_user_info($lastname, $firstname, $job, $degree, + $capabilty, $description, $phoneNumber, + $adress, $zipCode, $city, $userId); + // Redirection vers message avec l'index du message à afficher. + $messageNumber = 2; + $_SESSION["messageNumber"] = $messageNumber; + header("Location: /Views/message.php"); + die(); +} +?>
\ No newline at end of file |
