For each row I have a column which contains numbers like this 1,4,6,3,16,13. How do I search for a row which contains atleast that number? Note that it shouldn’t mislead 1 only from 11, or 6 from 16 and so on.
SELECT FROM table WHERE category LIKE %$query$%
Table Structure:
id | title | category | description | rating
Where
1is whatever number you’re looking for.