Jump to content

Scatless

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Scatless's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i've fixed the problem, was just an issue with the foreach
  2. <?php function print_teamOne($results) { $gqplayers = array('player_', 'score_', 'skill_', 'deaths_', 'gq_ping', 'team_'); foreach ($results as $key => $val) { $teamOne = $val['bf2_team1']; print("<table align=\"left\"><tr><td>$teamOne</td></tr>\n"); print("<tr><td><table><thead><tr><td>Player</td><td>Score</td><td>Kills</td><td>Deaths</td><td>Ping</td><td>Team</td></tr></thead><tbody>\n"); } foreach ($results['server']['players'] as $player) { foreach($player as $person => $team_) { if ($player['team_'] == 1) echo "<tr><td>".$player['player_']."</td><td>".$player['score_']."</td><td>".$player['skill_']."</td><td>".$player['deaths_']."</td><td>".$player['gq_ping']."</td><td>".$player['team_']."</td></tr>\n"; } } print("</table>\n"); print("</table>\n"); } ?>
  3. Hi, got a problem with my arrays, every string gets duplicated 11 times instead of just one time. How to fix this?
  4. Hi, i got a little problem here.. i get the array output for every worker 11 times like this John John John Peter Peter Peter how to fix this?
  5. thanks, i will check this out as soon as possible.
  6. Hello, i need some help with sorting arrays by it's value. lets say i want to have two different html tables listing the employees and another for the managers, then i want to sort them by Group ID's: Etc: Workers as the key / 1 as the value. Groups: Workers => 1 Managers => 2 Workers Group ID John 1 Peter 1 Lance 1 Managers Group ID Carol 2 Greg 2 Brian 2 How can i do this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.