php - array inside while loop to count classify countries -


i have problem array inside while loop, want classify countries , each country how many times repeated in database , here code , result.

my code

the output

1st stop using mysql_* functions. deprecated since several years!

2nd you're selecting rows users. described want like:

select country, count(country) users group country 

Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

Trouble making a JSON string -

sitecore - Resolve ISitecoreService using SimpleInjector -