Forums

Populating drop down with array

AdamMCG 06 May, 2018
I have used a custom PHP element to access my database and select the relevant data, I have then used the loadAssocList() function with a key and index specified. This has produced the data I wanted, displayed correctly in an array, shown in the debugger.

I have then written the code: {var:php9} in the options box of the dropdown, however no options are displayed for that dropdown on the page. Is there an error with the array formatting? Thanks for any help in advance.
Max_admin 20 May, 2018
Hello AdamMCG,

The PHP action should be ABOVE the "display section" action for this to work but the array formatting is correct.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.