I have a website which lists products in various categories and subcategories - fairly standard stuff. However, I now need to list the same product in multiple categories - how can I do this?
I'm using the code:
"SELECT * FROM ProductTable WHERE Category = 1"
I can get it to work by entering multiple numbers in the Category table i.e."1 2 3"
and using the code:
"SELECT * FROM ProductTable WHERE Category LIKE 1"
But this also returns products from category 10 and 11 (I have 20 categories).
I may be approaching this from the wrong angle but is there a way to make the code work?