Get User ID from Select List

More
11 years 8 months ago #41315 by mauriestate
Hi,

Following this FAQ ( www.flexicontent.org/documentation/faq/7...to-contact-form.html ) we can show contact details of a specific user from the select list, that is, the SQL function
Code:
SELECT id as value, name as text FROM #__contact_details WHERE user_id="{item->created_by}"
retrieves the user contact details from the database.

Based on this, I only need to get the user ID from the default Joomla user database, what is the SQL function should I use please? Sorry, I am not that good with SQL.

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #41320 by ggppdk
Replied by ggppdk on topic Get User ID from Select List
Hello

the user id of current item owner is:
{item->created_by}

-- and you used the above use id to get the contact details


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.669 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save