• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: custom select field in profile from database value

custom select field in profile from database value 12 years 5 months ago #15453

Hallo
I'm developing an application for a customer using your RSMembership. I need a custom select box in the user profile. I have seen the country example, retrieving data from a database. I need to have the value of the select different from the option label. I'm using the following
//<code>
$db = JFactory::getDBO();
$db->setQuery("SELECT id,name FROM #__tutors");
return implode("\n", $db->loadResultArray());
//</code>

in the values of the custom select option field. I was wondering if there is a way to have the value (id) different from the option label (name) such us:

<selec>
<option value='1'>XXXXX</a>
<option value='2'>YYYYY</a>
</select>


Thank you
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!