PHP Prepared Statement Problems [duplicate]

Solution 1:

$stmt->bind_result($email, $password);

You are binding 2 variables, but only asking for one: SELECT Email FROM members.

I'd also suggest using different variables for bind_result, as it and bind_param both work on references.

$stmt->bind_result($userEmail);