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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -