Jump to content

[SOLVED] Is something like this possible? (Regexp table join)


derrick24

Recommended Posts

The tags field consists of integers representing the id of the tags table, ie 1-2-5-6- = to the id of the tag for example.

 

All I'm really trying to do is prevent tags from showing up if nothing is associated with it. Pointless having the user click on a tag only be told there is no associated data for that tag.

 

Anyway, that query is not working for some odd reason. I'm starting to think its not doable.

 

TAG TABLE

ID TAG              HITS

1, 'Kitchens',        0

2, 'Cupboards',    0

3, 'Cabins',          0

4, 'Huts',            0

5, 'Sheds',          0

6, 'Flooring',        0

7, 'Tiles',            0

 

 

SEARCH TABLE

ID DETALS      TAGS

1,      6,        '1-2-9-'

2,      8,        '3-4-5-'

3,      4,        '6-7-'

4,      2,        '1-2-'

5,      1,        '21-17-'

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.