$query = "UPDATE `users` SET `adress`= $adress,`phonenmb`= $phonenmb WHERE $email";
$params = [
'adress' => $adress,
'phonenmb' => $phonenmb
];
$stmt = $pdo->prepare($query);
try {
$stmt->execute($params);
} catch (\Exception $e) {
die($e->getMessage());
}
$query = "UPDATE `users` SET `address`= ?,`phone_number`=? WHERE email=?";
$params = [
$address,
$phone_number,
$email,
];
$stmt = $pdo->prepare($query);
$stmt->execute($params);