Hopefully this makes sense to someone, I'm attempting to get Data from my database with a php query using WHERE, which works great for a standard category... WHERE category ='fashion'
However what if my column has multiple values separated like commas such as below:
+--------+----------------------------------+
| Name | Category |
+--------+----------------------------------+
| Shop A | Fashion, Food, Tech |
| Shop B | Food |
| Shop C | Fashion, Tech, Travel, Insurance |
+--------+----------------------------------+
How could I return the data for Shop A and Shop C which would be: WHERE category = 'fashion'
Or equally I would like to change it to food: WHERE category = 'food' and it returns the data for Shop A and B
I've attempted searching for a solution and seen " FIND_IN_SET " , but i'm not too sure of the best approach / most efficient method
Thanks if anyone can help / point me in the right direction!