public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function returns the count of a given platform in the database.
This function returns the count of a given platform in the database.
This function returns the count of a given platform in the database .
function wp_statistics_platform( $platform, $rangestartdate = null, $rangeenddate = null ) {
		global $wpdb;
		if( $rangestartdate != null && $rangeenddate != null ) {
			$result = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(platform) FROM {$wpdb->prefix}statistics_visitor WHERE `platform` = %s AND `last_counter` BETWEEN %s AND %s", $platform, $rangestartdate, $rangeenddate ) );
		} else {
			$result = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(platform) FROM {$wpdb->prefix}statistics_visitor WHERE `platform` = %s", $platform ) );
		}
		return $result;
	}
function wp_statistics_platform ( $ platform , $ rangestartdate = null , $ rangeenddate = null ) { global $ wpdb ; if ( $ rangestartdate != null && $ rangeenddate != null ) { $ result = $ wpdb -> get_var ( $ wpdb -> prepare ( " SELECT COUNT(platform) FROM  { $ wpdb -> prefix } statistics_visitor WHERE `platform` = %s AND `last_counter` BETWEEN %s AND %s " , $ platform , $ rangestartdate , $ rangeenddate ) ) ; } else { $ result = $ wpdb -> get_var ( $ wpdb -> prepare ( " SELECT COUNT(platform) FROM  { $ wpdb -> prefix } statistics_visitor WHERE `platform` = %s " , $ platform ) ) ; } return $ result ; }
This function returns the count of a given platform in the database.
This function returns the count of a given platform in the database .