• 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: POPULATE DROPDOWM FIELD

POPULATE DROPDOWM FIELD 11 years 2 months ago #26512

  • sletihon
  • sletihon's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
i am trying to populate a dropdown field with about 16000 record
the records are on my database of community builder
so i use the following code in 'details' of drpdown field but it does not work
can you help me ?
//<code>
$items = "|Please Select[c]\n";
$db =& JFactory::getDBO();
$db->setQuery("SELECT `Fieldid` FROM `a48yq_comprofiler_field_values` WHERE `Fieldid`=58");
$result = $db->loadObjectList();
foreach ($result as $r)
$items .= $r->fieldid. '|' . $r->Fieldtitle . "\n";
return $items;
// </code>
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!