Ver Mensaje Individual
  #17 (permalink)  
Antiguo 23/09/2005, 16:52
Avatar de Genetix
Genetix
 
Fecha de Ingreso: febrero-2002
Ubicación: Lima - Perú
Mensajes: 1.600
Antigüedad: 22 años, 2 meses
Puntos: 45
Prueba de esta manera
Código PHP:
$sql=mysql_query("select country, count(provider_id)as total from provider group by country order by total DESC Limit 5 ");
$total=0;
while(
$row=mysql_fetch_array($sql)){
    
$total+= $row["total"];
}
echo 
"total = ".$total
Saludos!