When I'm trying to use the if statement below it wont work. Can I somehow compare the data I fetch in the mysql_fetch functions?
if (mysql_num_rows($select_projects) > 0) {
while($all_objects = mysql_fetch_array($select_projects)) {
    if($all_objects['Team'] !== ""){
            $current_team == $all_objects['Team'];
            echo '<tr id="'.$all_objects['Team'].'"> <td>'.$all_objects['Team'].'</td><td>';
                while($test = mysql_fetch_array($select_projects)){
                        if($test['PlannedSprint'] == "544" and  $all_objects['Team'] == $test['Team']){ // problem whit the last part of the ifstatement. it is never true. 
                        echo 'Testtest'.$all_objects['Team'].'</br>';
                        }
                }
            echo '</td></tr>';
        echo '';
        array_push($team, $all_objects['Team']);        
        //}
    }
}
}
 
     
    