Posts by PedroFaria99 • 126 points
1 post
-
1
votes1
answer483
viewsA: Listing and Counting Rows from a table in Mysql
SQL: SELECT Nome, count(Nome) FROM A sua tabela GROUP by Nome In PHP: $sql = "SELECT Nome, count(Nome) FROM AsuaTabela GROUP BY Nome"; $result = $asuaVariavelDeConexão->query($sql);…