Jump to content

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


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-'

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.