13 Posts
kpjuni
10 years ago
4
Topic

This is my current query.

SELECT #__users.name FROM #__users INNER JOIN #__user_usergroup_map ON #__users.id = #__user_usergroup_map.user_id INNER JOIN #__usergroups ON #__usergroups.id = #__user_usergroup_map.group_id WHERE #__usergroups.id = '14'

It pulls all the correct information as needed, It, however will not save what information that is selected. I believe it's because i don't have a 'VALUE AS' statement of some kind. I cannot for the life of me, remember what i'm supposed to add to the query to make this happen.

Get a VIP membership
4229 Posts
Kadministrator
10 years ago
3
Level 1

HI, you need to have text and value aliases in query e.g. SELECT u.name AS text, u.id AS value FROM #__USERS AS u ....

9 years ago
2
Level 2

Hey, would you write this for me? Because I´m a noob for this :/

Sorry

154 Posts
WebOne
9 years ago
0
Level 3

@Williwusel

I highly recommend this site for learning MySQL and aliases :

http://www.mysqltutorial.org/mysql-alias/

4229 Posts
Kadministrator
9 years ago
0
Level 3

Hi,

for this you can use our support service.

Get a Book for SEBLOD