Code cleanups and comments
[Project_webapp.git] / includes / formaccount.php
index 6e1799995948e2fd7b47520aecc3f074d6eb5dad..32738c8a2bd405163ab5da51869afdfd5e223c4b 100644 (file)
@@ -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();