Sino...vean el ejemplo...y los resultados
Código PHP:
// Corijo BUG! => listo el THE MOST primero
$tb = mysql_query ("SELECT location, count(*) AS total
FROM ".tb()."accounts
GROUP BY location
ORDER BY total DESC LIMIT 1");
$r10 = mysql_fetch_array ($tb);
$arr_loc[]= array ($r10['total'],$r10['location']);
// Listo el resto
$tb = mysql_query ("SELECT location, count(*) AS total
FROM ".tb()."accounts
GROUP BY location
ORDER BY total DESC LIMIT 10");
$r10 = mysql_fetch_array ($tb);
while ($r10 = mysql_fetch_array ($tb)){
$arr_loc[]= array ($r10['total'],$r10['location']);
}
47 Mexico
25 Argentina
17 Colombia
16 Peru
13 España
8 Ecuador
7 Chile
7 Venezuela
6 USA
4 Repulica Dominicana
La parte mas extraña de todo...es que PHPMYADMIN esta escrito en PHP... o sera que hace las consultas en C/C++ ?