query(" SELECT hlstats_Awards.awardType, hlstats_Awards.code, hlstats_Awards.name, hlstats_Awards.verb, hlstats_Awards.g_winner_id, hlstats_Awards.g_winner_count, hlstats_Players.lastName AS g_winner_name, hlstats_Players.flag AS flag, hlstats_Players.country AS country FROM hlstats_Awards LEFT JOIN hlstats_Players ON hlstats_Players.playerId = hlstats_Awards.g_winner_id WHERE hlstats_Awards.game='$game' ORDER BY hlstats_Awards.name "); ?>
10) { $cols = 5; } $colwidth = round(100/$cols); while ($r = $db->fetch_array($resultAwards)) { if ($i==$cols) { echo ''; $i = 0; } if ($i==0) { echo ''; } if ($image = getImage("/games/$game/gawards/".strtolower($r['awardType'].'_'.$r['code']))) { $img = $image['url']; } elseif ($image = getImage("/games/$realgame/gawards/".strtolower($r['awardType'].'_'.$r['code']))) { $img = $image['url']; } else { $img = IMAGE_PATH.'/award.png'; } $weapon = "\"".$r['code'].'"'; if ($r['g_winner_id'] > 0) { if ($g_options['countrydata'] == 1) { $imagestring = ''.$r['country'].'  '; } else { $imagestring = ''; } $winnerstring = ''.htmlspecialchars($r['g_winner_name'], ENT_COMPAT).''; $achvd = "{$imagestring} {$winnerstring}"; $wincount = $r['g_winner_count']; } else { $achvd = "No Award Winner"; $wincount= "0"; } echo "'; $i++; } if ($i != 0) { for ($i = $i; $i < $cols; $i++) { echo ''; } echo ''; } ?>
".$r['name'].'

' ."$weapon

" ."$achvd
" .''. $wincount . ' ' . htmlspecialchars($r['verb']).'