//display faction userlevel:
$level_boss = $req_faction_info['f_boss'];
$level_uboss = $req_faction_info['f_uboss'];
$level_rhm = $req_faction_info['f_rhm'];
$level_lhm = $req_faction_info['f_lhm'];
$level_r1 = $req_faction_info['f_r1'];
$level_r2 = $req_faction_info['f_r2'];
if($level_boss == $username){ $u_level = 'Boss'; }
elseif($level_uboss == $username){ $u_level = 'Underboss'; }
elseif($level_rhm == $username){ $u_level = 'Right Hand Man'; }
elseif($level_lhm == $username){ $u_level = 'Left Hand Man'; }
elseif($level_r1 == $username){ $u_level = 'Recruiter One'; }
elseif($level_r2 == $username){ $u_level = 'Recruiter Two'; }
else{ $u_level = 'Faction Member'; }
echo '<div id="faction_userlevel">Your current level within the faction is: '.$u_level.'</div>';
There must be an easier way of doing this?