Is something like this possible:
SELECT DISTINCT COUNT(productId) WHERE keyword=\'$keyword\'
What I want is to get the number of unique pro
I would do something like this:
Select count(*), productid
from products
where keyword = '$keyword'
group by productid
that will give you a list like
count(*) productid
----------------------
5 12345
3 93884
9 93493
This allows you to see how many of each distinct productid ID is associated with the keyword.