$CountT=0 ;
$sqls=" SELECT ref_id, count( ref_id ) AS CountT FROM tb_answer where ref_id='$id_ques' GROUP BY ref_id ";
$results=mysql_query($sqls);
while($rows= mysql_fetch_array ($results)){
$CountT=$rows["CountT"];
$CountT=0 ;
$sqls=" SELECT ref_id, count( ref_id ) AS CountT FROM tb_answer where ref_id='$id_ques' GROUP BY ref_id ";
$results=mysql_query($sqls);
while($rows= mysql_fetch_array ($results)){
$CountT=$rows["CountT"];