Add ID in SQL Form

John created the topic: Add ID in SQL Form

Hello,

I created a form with the component and it working pretty well.

The form is only available when users are logged. So I would like to add the ID of the user in the form.

I tried to add in one field the value ( by the option MySQL Mapping ) "JFactory::getUser()->id" , but as you can guess it's not working...

Anybody of you have an idea to do it ?

Thank you in advance

#28725

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


Support replied the topic: Add ID in SQL Form

Dear John,

Could you please tell us if you want to add the ID in the form or in MySQL Mapping? Also, if in the form, meaning frontend of it, is it going to be in an input, or just as text on the top?

Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#28797

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


John replied the topic: Add ID in SQL Form

Hello,

If possible, I would like by Mysql Mapping.
By cons , I don't know if I can add a hidden input with PHP value , and after add the value by Mysql Mapping ?

The goal here , this is a form and customers will add announcement by a form.
I want to add informations in my database , but that mean I have to get the ID of every customer because after I'll show every thing they added by the form in a special page ( and in my SQL query I'll add a condition by ID ).

Thank you

#28839

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


Support replied the topic: Add ID in SQL Form

Dear John,

Please contact us to [email protected] and provide temporary admin access to your website. We will add it to MySQL mapping. As for your question about hidden field, most probably it will be possible. We will ask our developers to help you out with a suggestion.

Don't forget to mention the full link to your forum post in the subject of your e-mail.
Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#28871

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


John replied the topic: Add ID in SQL Form

Hello,

I sent you the email.
Tell me if you received it

Thank you

#29155

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


Support replied the topic: Add ID in SQL Form

Dear John,

Thank you, we will respond to you very soon.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#29189

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


Time to create page: 0.212 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us