Dynamic Data Loading from Database to Select Drop-Down Box

Hi,

I can’t seem to find an answer for this but I was wondering how to load data from my database to my select drop-down box?

For example,
in PHP/HTML, you can populate data from a database to a select box as so:

[i]

<?php while($row < obdc_fetch_array($getRecords)){ echo "" . $row['itemFromDB'] . ""; } ?>

[/i]

How can you do this in DHTMLX? I know it makes use of connectors but, in that case, I would need to do something such as:

var myFrom = [
{type:“select”, name:“mySelectFromDB”, options:[
Load From Database
]}
];

Sorry if this has already been answered. I may have not been looking in the right places.

Thanks in advance

Well it seems as though I just wasn’t looking hard enough. I finally found the solution at this link:

docs.dhtmlx.com/connector__php__ … ector.html

You basically just call the connector and it’ll pull from the database for you. I hope this helps anyone else who had issues finding this solution as well.

Hi

that’s correct, you need connector attr

here is a demo
dhtmlx.com/docs/products/dhtmlxF … combo.html