Hi I've been working on this for a project and now I have it working thought I would share to help others.

I wanted to populate a combobox with results from a mysql data base.

To begin with I placed this in a html block: (replace bold items with your data and for "stuff" replace with your column name from your database.
Its important this code is towards the front in the z order, or you can just put in the start of page html, but it must go BEFORE the actual combobox otherwise it wont populate it.

Thanks. This is a great example and easy to follow. When I used this example, all items are listed down the page but the combobox does not list the first item. Any thoughts?

I was able to figure out the problem. I'm not sure if it had anything to do with the problem I encountered but I was using a SELECT DISTINCT query. The problem was that web builder seemed to be missing a "<" when the html code was generated.

Instead of

<?php echo $selectBoxOption;?>

I had to use this

>
<?php echo $selectBoxOption;?>

Last edited by hurtman on Fri Jul 29, 2016 1:27 am, edited 2 times in total.

@tenori Please see forum rules if this sectionForum rules
"This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder."
Please do not post questions or problems here. They will not be answered