I know there are lots of other people having this issue but I cant find a solution. I've had this problem before and I managed to fix it:
$check = $conn->prepare("SELECT password,key,user FROM `users` WHERE email = ?");
$check->bind_param("s",$url_email); <-- line 31
$check->execute();
mysqli_stmt_bind_result($check,$db_pass,$db_user_id,$db_username);
$check->close();
But when using a prepared statement I get this error:
PHP Fatal error: Call to a member function bind_param() on a non-object in /var/www/html/login.php on line 31