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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

Command prompt result in label. Python 2.7 -