updating
This commit is contained in:
parent
26df4edcce
commit
cc73ee13dd
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
if (!current_user_can('manage_options')) return;
|
||||
|
||||
global $wpdb;
|
||||
$table_name = "wp_app_users_statistics";
|
||||
global $wpdb;
|
||||
$table_name = "wp_app_users_statistics";
|
||||
|
||||
$level_post_ids = $wpdb->get_col("
|
||||
$level_post_ids = $wpdb->get_col("
|
||||
SELECT DISTINCT level_post_id
|
||||
FROM $table_name
|
||||
");
|
||||
|
||||
?>
|
||||
<div class="page-sessions-datas">
|
||||
<div class="page-sessions-datas">
|
||||
<h1 class="page-title"><?php echo esc_html(get_admin_page_title()); ?></h1>
|
||||
|
||||
<?php foreach ($level_post_ids as $level_post_id) : ?>
|
||||
|
|
@ -114,5 +114,20 @@ if (!current_user_can('manage_options')) return;
|
|||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
$ratings_table_name = "wp_app_ratings";
|
||||
$ratings = $wpdb->get_results("
|
||||
SELECT rating, COUNT(rating) as count
|
||||
FROM $ratings_table_name
|
||||
GROUP BY rating
|
||||
");
|
||||
|
||||
echo '<pre>';
|
||||
print_r($ratings);
|
||||
echo '</pre>';
|
||||
?>
|
||||
|
||||
<section class="ratings">
|
||||
|
||||
</section>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user