I have table with name users and a column in it named source . The column contains 3 different type of values which are strings(facebook, google, yahoo). Now I need to count how many Facebook strings, google strings & yahoo strings are present in that column.
Any easy simple way to do it using php query?
How do I get to display the number!!!!!!!!
You can use this solution. This gets the counts into separate columns so you can easily reference to the count of your different strings in php:
Edit: As per your comments to this answer… On how to retrieve these values using php, something like this: