public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// the URI and getting the associated ID.  This will only work if the page has been visited at least once.
the URI and getting the associated ID.  This will only work if the page has been visited at least once.
the URI and getting the associated ID . This will only work if the page has been visited at least once .
function wp_statistics_uri_to_id( $uri ) {
		global $wpdb;
		$sqlstatement = $wpdb->prepare( "SELECT id FROM {$wpdb->prefix}statistics_pages WHERE `URI` = %s AND id > 0 ORDER BY date DESC", $uri );
		$result = $wpdb->get_var( $sqlstatement );
		if( $result == 0 ) { $result = 0; }
		return $result;
	}
function wp_statistics_uri_to_id ( $ uri ) { global $ wpdb ; $ sqlstatement = $ wpdb -> prepare ( " SELECT id FROM  { $ wpdb -> prefix } statistics_pages WHERE `URI` = %s AND id > 0 ORDER BY date DESC " , $ uri ) ; $ result = $ wpdb -> get_var ( $ sqlstatement ) ; if ( $ result == 0 ) { $ result = 0 ; } return $ result ; }
the URI and getting the associated ID.
the URI and getting the associated ID .
// Create the SQL query to use. // Execute the query. // If we returned a false or some other 0 equivalent value, make sure $result is set to an integer 0.