query(" SELECT hlstats_Awards.awardId, hlstats_Awards.awardType, hlstats_Awards.code, hlstats_Awards.name, hlstats_Awards.verb, hlstats_Awards.d_winner_id, hlstats_Awards.d_winner_count, hlstats_Players.lastName AS d_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.d_winner_id WHERE hlstats_Awards.game='$game' ORDER BY hlstats_Awards.name "); $result = $db->query(" SELECT IFNULL(value, 1) FROM hlstats_Options WHERE keyname='awards_numdays' "); if ($db->num_rows($result) == 1) list($awards_numdays) = $db->fetch_row($result); else $awards_numdays = 1; $result = $db->query(" SELECT DATE_FORMAT(value, '%W %e %b'), DATE_FORMAT( DATE_SUB( value, INTERVAL $awards_numdays DAY ) , '%W %e %b' ) FROM hlstats_Options WHERE keyname='awards_d_date' "); list($awards_d_date, $awards_s_date) = $db->fetch_row($result); ?>
".$r['name'].' ' ."$weapon " ."$achvd " .''.$wincount. ' ' . htmlspecialchars($r['verb']).' | ';
$i++;
}
if ($i != 0)
{
for ($i = $i; $i < $cols; $i++)
{
echo ''; } echo ' |