X-Git-Url: https://git.piment-noir.org/?p=Project_webapp.git;a=blobdiff_plain;f=includes%2Fformaccount.php;h=32738c8a2bd405163ab5da51869afdfd5e223c4b;hp=6e1799995948e2fd7b47520aecc3f074d6eb5dad;hb=01adaa67ec825ce01c2921dca8ea4187a5efdb0e;hpb=b2c6089052f1ca993e9f7ac12d23e66f552ce012 diff --git a/includes/formaccount.php b/includes/formaccount.php index 6e17999..32738c8 100644 --- a/includes/formaccount.php +++ b/includes/formaccount.php @@ -50,8 +50,8 @@ if (!empty($form_name) && !empty($form_firstname) && !empty($form_numstreet) && global $connection; $client_id = get_client_id($_SESSION['email']); $sql_pquery = "update CLIENTS - set NomCl = ?, PrenomCl = ?, EmailCl = ?, NumRueCl = ?, NomRueCl = ?, CodePosteCl = ?, VilleCl = ? - where NumCl = ?"; + set NomCl = ?, PrenomCl = ?, EmailCl = ?, NumRueCl = ?, NomRueCl = ?, CodePosteCl = ?, VilleCl = ? + where NumCl = ?"; $connection->prepare_query($sql_pquery); $connection->prepared_query_bind_param("sssisisi", array($form_name, $form_firstname, $form_email, $form_numstreet, $form_street, $form_postalcode, $form_city, $client_id)); $connection->run_prepared_query(); @@ -65,8 +65,8 @@ if (!empty($form_name) && !empty($form_firstname) && !empty($form_numstreet) && $client_id = get_client_id($_SESSION['email']); $hashed_password = password_hash($form_password, PASSWORD_DEFAULT); $sql_pquery = "update CLIENTS - set PasswordCl = ? - where NumCl = ?"; + set PasswordCl = ? + where NumCl = ?"; $connection->prepare_query($sql_pquery); $connection->prepared_query_bind_param("si", array($hashed_password, $client_id)); $connection->run_prepared_query();