1. Zephyrinus
  2. General
  3. Friday, May 29 2015, 10:52 AM
Hi guys,

I can't get the following query to work..

Our platform has relevant usergroups "concept" and "published", (2 and 12)

We got an EP field "category" (SELECT LIST)
We got an EP field "platform" (SELECT LIST)

One of our landingpages should show users that
- are in user group "published"
- have selected in "platform" at least a certain option enabled
- have selected in "category" at least a certain option enabled

So one user meets these requirements but he the profile does not show up

I tried these:

b.`categorie` LIKE '%\"6\"%' AND b.'platform' LIKE '%\"1\"%' AND group_id IN 12

b.`categorie` LIKE '%\"6\"%' AND b.'platform' LIKE '%\"1\"%' AND group_id=12

b.`categorie` LIKE '%\"6\"%' AND 'platform' LIKE '%\"1\"%' AND group_id IN 12

b.`categorie` LIKE '%\"6\"%' AND 'platform' LIKE '%\"1\"%' AND group_id=12

Can you please help me out?

greetz,

Dennis
Accepted Answer
admin Accepted Answer
Admin
Hi,
in your previous parameter you have set this 'platform' instead `platform`

When you use SQL statement "IN" you need to include value into parenthesis like (12)
  1. more than a month ago
  2. General
  3. # Permalink
Zephyrinus Accepted Answer
Pro
b.`categorie` LIKE '%\"6\"%' AND group_id=12 AND b.`platform` LIKE '%\"1\"%'

this one works for me
  1. more than a month ago
  2. General
  3. # 1
Zephyrinus Accepted Answer
Pro
Easy-profile is the best component for Joomla, and so is the staff
  1. more than a month ago
  2. General
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.