I am trying to populate a combo box in a form using phpconnector to a mysql table. This is the connector php file:
$options = new ComboConnector($inventory);
This is the xml output of the php file:
The option value with the id of 0 changed automatically to 1388626473_0. Is it a feature of dhtmlx that an [b]id[/b] should begin with 1 instead of 0?
The client side will not work correctly with ID == 0 ( as in some cases it can be processed the same as record without id )
Connector process such situation the same as for record without id and generates some unique temporary value.
Thanks Stanislav. Since the generated id is a huge number and I have less than a hundred elements in the table, I created a small function to re-create id 0
$id = $row->get_value(“id”);
if ($id > 100000)
$options = new comboConnector($inventory);
$options->render_table(“freezers”, “id”, “freezer, id”);[/code]