I'm trying to get a 1 or a 0 from the result, but how do I retrieve it and use it as a simple variable to compare with other variable? I want to use my variable $result_1 and check if it has the value of 1 or 0.
//
$stmt = $db->prepare("SELECT status FROM todo WHERE id=?");
$stmt->bind_param("i", $id);
$stmt->execute();
$result_1 = $stmt->get_result();