Firstly, my code:
$stmt = $pdo->prepare("SELECT id FROM users WHERE
username = :user_email OR
email = :user_email");
$user_email = $_POST["usernameemail"];
$stmt->execute(array(
'user_email'=>$user_email
));
$account_exist = $stmt->fetch();
if(!isset($account_exist)) {
$account_exist_error = '<p style="color:#F00;">Username or Email not found</p>';
}
$account_exist_error does not return when the query doesn't find anything
I have also tried
if($account_exist === '') {
ect
}
Neither of these return anything, and other relevant questions are not helping me, $account_exist = '' is set earlier in my code