Account::updateRowsGeneratedCount PHP Method

updateRowsGeneratedCount() public method

public updateRowsGeneratedCount ( $configurationID, $rowsGenerated )
    public function updateRowsGeneratedCount($configurationID, $rowsGenerated)
    {
        if (!is_numeric($rowsGenerated)) {
            return;
        }
        $dbLink = Core::$db->getDBLink();
        $cleanRowsGenerated = mysqli_real_escape_string($dbLink, $rowsGenerated);
        $prefix = Core::getDbTablePrefix();
        $accountID = $this->accountID;
        $response = Core::$db->query("\n\t\t\tUPDATE {$prefix}configurations\n\t\t\tSET num_rows_generated = num_rows_generated+{$cleanRowsGenerated}\n\t\t\tWHERE  account_id = {$accountID} AND configuration_id = {$configurationID}\n\t\t");
        $response = Core::$db->query("\n\t\t\tUPDATE {$prefix}user_accounts\n\t\t\tSET num_rows_generated = num_rows_generated+{$cleanRowsGenerated}\n\t\t\tWHERE account_id = {$accountID}\n\t\t");
    }