I have query that COUNT
the data based from user search condition in search.
My question is just simple although I don't know what the solution here:
I want to call the COUNT column, which I know it was just temporary column
I have PHP
code like this:
$count = mysql_query("SELECT *, COUNT(*) AS SAMPLECOUNT FROM `subscribers` WHERE `country` = 'USA' ");
$row=mysql_fetch_array($count);
so by this code I can echo the columns inside the subscribers
by using this:
echo $row['country'];
*echo the count result here*
So maybe the output will be like this:
USA: (the count result)