There is such a script output and counting the amount of data, what am I doing wrong?
<table border="1"> <?php $res = mysql_query("SELECT t1.`count`, COUNT(t1.`count`) FROM (SELECT `name`, COUNT(*) as `count`FROM `clinet` GROUP BY `name`) AS t1 GROUP BY t1.`count`"); while($row = mysql_fetch_assoc($res)) { echo '<tr>'; echo '<td>'.$row['t1'].'</td>'; echo' <td>'.$row['count'].'</td>'; } ?> </table>