View Single Post
Old 12-26-2021, 01:49 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,102
Quote:
Originally Posted by lakerslive View Post
Hello,


i have a custom DB.

It has a table structure called "POST"

in that table POST it has a field called "TAGS" where data like
blonde, brunette, MILF, fit, busty etc.. are all stored.

My question is, is the database structured correctly to enable a filter system on the front end to do a combine tag filter search? example, i only want "BLONDES" with "FIT" bodies? thank you!
Without knowing much more:

Select * from tablename where tags like '%blondes%' and tags like '%fit%'

Should work. How well it works depends on your indexing.

I have my models db structured with a models table and a tags table.

The tags table has the model_id and a tag name and there are multiple tag records per model.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote