![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Aug 2012
Posts: 929
|
Filter combining tags
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,098
|
Quote:
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! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |