I have a movie ranking system on my site and I need it NOT to show how many users have recommended such a movie, here's my code:
$query = "SELECT DISTINCT filmes, count(filmes) FROM filmes_rec
GROUP by filmes
ORDER by count(filmes) DESC LIMIT 10";
$result = mysqli_query($link, $query);
while($row = mysqli_fetch_row($result)) {
foreach($row as $field => $value) {
echo '<hr class="break"><tr><p class="title">' . htmlspecialchars($value) . '</p></tr>';
}
}