Am playing with some OOP PHP again and have found a nifty way to cut down short if else statement
return ($count == 1 ? 'Incorrect password' : 'Incorrect username.');
is the same as
if ($count == 1 ) {
return 'Incorrect password';
} else {
return 'Incorrect username.';
}
Bargain!