I am trying to get the count of users on my site associated with a certain company, but something is wrong with my query. I keep getting 'no result' or a result of array:
$coresults = mysql_query("SELECT COUNT(user_id) FROM ".DB_USERS." WHERE user_company=".$jdata['job_company']."");
$count = mysql_fetch_array($coresults);
I have also tried with PDO with no success
$nRows = $pdo->query('select count(*) from blah')->fetchColumn();
echo $nRows;