updating
This commit is contained in:
parent
26df4edcce
commit
cc73ee13dd
|
|
@ -114,5 +114,20 @@ if (!current_user_can('manage_options')) return;
|
||||||
|
|
||||||
<?php endforeach; ?>
|
<?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