Here\'s my code
$stmt = $conn->mysqli->stmt_init(); $stmt = $conn->mysqli->prepare(\'SELECT Username, EmailVerified, Blocked FROM user WHERE Emai
num_rows is a property of mysqli_stmt, not of a result resource. So you should be doing:
num_rows
mysqli_stmt
$result = $stmt->get_result(); // Also check strict comparison against int 0, // to avoid incorrect equality with boolean FALSE if($stmt->num_rows === 0){ echo 'No rows found'; }