When I run the following code the echo returns resource id #10 instead of number, in my case 6. Would appreciate any help!
$result = mysql_query("SELECT COUNT(`category_id`) FROM `products_has_product_category`
WHERE `category_id`=1");
echo $result;
use function
mysql_fetch_objectormysql_fetch_rowto convert query result to datasee mysql_fetch_object