public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function will empty a table based on the table name.
This function will empty a table based on the table name.
This function will empty a table based on the table name .
function wp_statitiscs_empty_table( $table_name = FALSE ) {
		global $wpdb;
		if( $table_name ) {
			$result = $wpdb->query( 'DELETE FROM ' . $table_name );
			if($result) {
				return sprintf( __( '%s table data deleted successfully.', 'wp_statistics' ), '<code>' . $table_name . '</code>' );
			}
		}
		return sprintf( __( 'Error, %s not emptied!', 'wp_statistics' ), $table_name ); 
	}
function wp_statitiscs_empty_table ( $ table_name = FALSE ) { global $ wpdb ; if ( $ table_name ) { $ result = $ wpdb -> query ( 'DELETE FROM ' . $ table_name ) ; if ( $ result ) { return sprintf ( __ ( '%s table data deleted successfully.' , 'wp_statistics' ) , '<code>' . $ table_name . '</code>' ) ; } } return sprintf ( __ ( 'Error, %s not emptied!' , 'wp_statistics' ) , $ table_name ) ; }
This function will empty a table based on the table name.
This function will empty a table based on the table name .