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();
$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();
$configs = include('config.php');
/**
- * [session_start start a unique session for the current browser client]
+ * session_start start a unique session for the current browser client
*/
session_start();
$is_logged_in = chk_logged_in();
/**
* query method that permit to execute a SQL query
* @param string $sql_query the SQL query to execute
- * @return mysqli_result object or FALSE on failure and TRUE for queries
+ * @return object mysqli_result or FALSE on failure and TRUE for queries
* without results
*/
public function query($sql_query)
}
/**
- * [get_pquery_result description]
- * @return [type] [description]
+ * get_pquery_result method to get the resultset of parametrized SQL query
+ * @return object mysqli_result resultset or FALSE for other DML queries or on failure
*/
public function get_pquery_result()
{