tags - How to show related content using like in mysql? -
I currently have a table for the products with its own set of tags, and with its own set of tags, I wanted to add the related page to the page of products so I was thinking of using like but since the product page has a column tag something like this
(Products) Tags-manutd, UTD, Bruha [ Male, UTV, Football
(News) Tags: - manutd , Blah, bruha [ this is related to ]
(news) It is not related to ]
I have to show all my things Want to use a query in which any of my tags (from products) is different from commas, how should I go about making such a question using mysql?
If there is a better way of doing this then a little explanation will also be useful. Thank you
Do you have product tags in your hand or do you want to be included in two tables based on them Tag equality? In the first case, I will try to do something like:
Choose from ... news from where 'manutd | Man utd | Football '
Note that I have used the above product tag string, | Changed the comma by
and removed the white space on the left and right sides of the coma.
Comments
Post a Comment