faraz Posted March 18, 2010 Report Share Posted March 18, 2010 Hi How can i show total pilot in each rank ? RanksData::getAllRanks(); Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 19, 2010 Administrators Report Share Posted March 19, 2010 Hi How can i show total pilot in each rank ? RanksData::getAllRanks(); That has a field called totalpilots in each result which contains the number of pilots in that rank. So when you loop: $all_ranks = RanksData::getAllRanks(); foreach($all_ranks as $rank) { echo $rank->totalpilots; // This contains the total # } 1 Quote Link to comment Share on other sites More sharing options...
kisadi Posted October 12, 2013 Report Share Posted October 12, 2013 That has a field called totalpilots in each result which contains the number of pilots in that rank. So when you loop: $all_ranks = RanksData::getAllRanks(); foreach($all_ranks as $rank) { echo $rank->totalpilots; // This contains the total # } How is it possible to do it the same way as BA virtual did (http://www.bavirtual.co.uk/index.php?r=site/viewStatistics) so how can I put it next to the rank. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.