我想统计一个字段中,不同值的总数
例如 字段 title_id中有 2 1 5 5
四个值我想统计输出为  1 => 总数 1
                  2 => 总数 1
                  5 => 总数 2
下面是我尝试的代码:<?php 
$cou="select title_id,count(*) as num from getip order by title_id";
$cou1=mysql_query($cou);
$count=mysql_fetch_array($cou1);
var_dump($count);
?>但是输出的数组好奇怪
array(4) { [0]=> string(1) "2" ["title_id"]=> string(1) "2" [1]=> string(1) "4" ["num"]=> string(1) "4" }要怎么才能输出我要的结果呢
SQLStringMySQLPHPActionScript