if(password_verify($password, $hashed_password)){ if($row["userban"]){ echo "Hesap banlanmış; //burada location header yapabilirsin die; }