Hello, I have combo in my Form and I am trying to load pairs of values-labels in it using a ComboConnector.
part of my code:
[code]$data = new ComboConnector($conn,“MySQL”);
$data->enable_log(“log_formProduction.txt”, true);
$data->render_sql("SELECT c.id as value, d.lastName as label FROM customer c, details d WHERE c.details_id = d.id","id","id(value),lastName(label)");[/code]
the xml that is produced seems wrong and the combo gets weird values
part of the xml:
[code]<?xml version='1.0' encoding='utf-8' ?>
[/code]The query runs as expected if I run it against my tables.
log:
Illegal string offset ‘name’ at …\codebase\db_common.php line 68
Illegal string offset ‘operation’ at …\codebase\db_common.php line 68
Illegal string offset ‘value’ at …\codebase\db_common.php line 68
Source:customer c, details d
Fieldset: c.id as value, d.lastName as label
Where: ;
Start:
Count:
Relation:
SELECT c.id as value, d.lastName as label FROM customer c, details d WHERE ( c.details_id = d.id)
Done in 0.0073978900909424s
Any ideas?
Thank you for your time,
Andreas