ALFA.MySQLDatabase.ACR_IncrementStatistic C# (CSharp) Method

ACR_IncrementStatistic() public method

Increment a global tracking statistic counter stored in the database (if statistic tracking was enabled).
public ACR_IncrementStatistic ( string Statistic ) : void
Statistic string Supplies the counter name.
return void
        public void ACR_IncrementStatistic(string Statistic)
        {
            Implementation.ACR_SQLExecute(String.Format(
                "INSERT INTO `stat_counters` (`Name`, `Value`, `LastUpdate`) " +
                "VALUES ('{0}', 1, NOW()) " +
                "ON DUPLICATE KEY UPDATE `Value` = `Value` + 1, " +
                "`LastUpdate`=NOW()",
                Implementation.ACR_SQLEncodeSpecialChars(Statistic)));
        }