<? $id=row['id']; $res=mysql_query("select count(id_padre) from comentarios where id_padre='".$id."' group by id_padre", $conexion);