Change this:
if(!$login_match) { echo "Wrong username/pasword.";}
if(!$login_active) { echo "Account not activated, check your email";}
if($login_banned) { echo "Your account is banned";}
To this:
<?php
if ($login_banned == true) {
echo "Your account is banned";
} else if ($login_match != true) {
echo "Wrong username/password.";
} else if ($login_active != true) {
echo "Account not activated, check your email";
}
?>
I hope it does what you want.
Below are options you could still use:
//PICK OPTIONS DEPENDING ON YOUR PREFERENCE AND MESSAGE PRIORITIES
//option 1
if ($login_match != true) {
echo "Wrong username/pasword.";
} else if ($login_banned != true) {
echo "Your account is banned";
} else if ($login_active != true) {
echo "Account not activated, check your email";
}
//option 2
if ($login_match != true) {
echo "Wrong username/pasword.";
} else if ($login_active != true) {
echo "Account not activated, check your email";
} else if ($login_banned != true) {
echo "Your account is banned";
}
//option 3
if ($login_banned == true) {
echo "Your account is banned";
} else if ($login_match != true) {
echo "Wrong username/password.";
} else if ($login_active != true) {
echo "Account not activated, check your email";
}