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 - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -