0
I have the following query on Pdo:
$ranking = $pdo->query("SELECT * FROM usuarios GROUP BY moedas ORDER BY count(moedas) DESC LIMIT 3");
I use this to make a ranking to know users with more coins. However, I am using a second query with rowCount() to know the amount of coins of the user listed, it would be possible to extract the value of Count(coins) from this first query (quoted in the post)?
That’s not what I want friend, I need to know the value of COUNT(coins).
– Paulo Sérgio Filho
I edited the answer. You have to explain the structure of your table better.
– Stéfano
And how do I show off?
– Paulo Sérgio Filho
I edited my answer again.
– Stéfano