if($resultat_login['count'] > 0 & $resultat_email['count'] == 0 & $fValName != $login){
$_SESSION['message'] = 'Такой логин уже существует';
$connect->query("UPDATE `users` SET `full_name` = '$full_name', `email` = '$email', `password` = '$password' WHERE `id`= $id");
}
else if($resultat_login['count'] == 0 & $resultat_email['count'] > 0 & $fValEmail != $email){
$_SESSION['message'] = 'Такая почта уже существует';
$connect->query("UPDATE `users` SET `full_name` = '$full_name', `login` = '$login', `password` = '$password' WHERE `id` = $id");
}
else if($resultat_login['count'] > 0 & $resultat_email['count'] > 0){
$_SESSION['message'] = 'Такие логин или почта уже существуют';
$connect->query("UPDATE `users` SET `full_name` = '$full_name', `password` = '$password' WHERE `id` = $id");
}
else{
$connect->query("UPDATE `users` SET `full_name` = '$full_name', `login` = '$login', `email` = '$email', `password` = '$password' WHERE `id` = $id");
}