Hello,
I try to customize lightbox with some combobox.
I have 2 combobox with parent-child relation.
In MySQL DB there are these table:
-
category
id - int 5 - PK
descr - varchar 100 -
activity
id - int 5 - PK
id_category - int 5 FK
descr - varchar 100
In .PHP:
[code] $list_category = new OptionsConnector($res, “MySQLi”);
$list_category->render_table(“category”,“id”,“id(value),descr(label)”);
$list_activity = new OptionsConnector($res, "MySQLi");
$list_activity->render_table("activity","id","id(value),descr(label),id_category");[/code]
In Javascript I try to use this example:
docs.dhtmlx.com/scheduler/sampl … htbox.html
but not working.
I think problem is format of child table “activity” because in example there’s a JSON with parent as JSON Array.
Can anyone help me?
Is there an example for linking server-side selects?
Thanks,
William