Jump to content

Populating RSForm dropdown box with PHP


Acrocephalus

Recommended Posts

Hello,
I'm trying to populate a dropdown box in a RSForm using this code:

//<code>
$db = JFactory::getDbo();
$db->setQuery("SELECT Bruel_ID FROM mpctz_rsform_bruels");
return $db->loadObjectList();
//</code>

However, it displays nothing in the box and some code outside of it (see attached file). Can anyone help?
Thanks,

Dani

post-173048-0-71705000-1412063582_thumb.jpg

Link to comment
https://forums.phpfreaks.com/topic/291367-populating-rsform-dropdown-box-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.