global $TABLES_CONFIGS;
$this->queryStatement("TRUNCATE TABLE dbo.webRankingCharactersResets");
$findCharactersQ = $this->queryStatement("Select TOP 200 AccountID,Name,Class,cLevel,".COLUMN_PK_RANKING." as PkCount,CtlCode,".COLUMN_RESETS." as resets, ".COLUMN_MASTER_RESETS." as mresets, ".COLUMN_RESETS_WEEK." as resetsWeek,".COLUMN_RESETS_MONTH." as resetsMonth from ".DATABASE_CHARACTERS.".dbo.Character where (ctlcode < 8 or ctlcode is null) order by ".COLUMN_RESETS." desc");
while($findCharacters = mssql_fetch_object($findCharactersQ))
{
    $this->queryStatement("INSERT INTO dbo.webRankingCharactersResets (account,character,clevel,pkcount,resets,mresets,resetsweek,resetsmonth,class) VALUES ('{$findCharacters->AccountID}', '{$findCharacters->Name}', {$findCharacters->cLevel}, {$findCharacters->PkCount}, {$findCharacters->resets}, {$findCharacters->mresets}, {$findCharacters->resetsWeek}, {$findCharacters->resetsMonth}, {$findCharacters->Class})");
}
$this->addSymbol(42, $this->colors['black'], $this->colors['lightgreen']);  
$this->addStringImg(50, "Execuo bem sucedida.", $this->colors['black']);