getProfileVillages($_GET['uid']); if($user) { $totalpop = 0; foreach($varray as $vil) { $totalpop += $vil['pop']; } ?>