EMG
|
Posted: 01/25/2002, 1:01 PM |
|
The documentation (3.2 table) for the db_fill_array function
says "Field list should consist of two fields: name and value"
The below script from the function is putting the first field value as the array key, not the field name (if I'm not mistaken):
$ar_lookup[$db_fill->f(0)] = $db_fill->f(1);
Can someone clarify this for me?
|
|
|
Brent
|
Posted: 01/25/2002, 2:17 PM |
|
The $db_fill->(0) is the key "f" and the $db_fill->(1) is the lookup value "fish".
So it would be assigning $ar_lookup["f"] = "fish";, at least it does it this
way for list values and I would assume file lookups would fill the array the same way.
If you read the documentation on the List Box "List of Values" you see they
are paired "key0;value0;key1;value1...". You can use the PHP implode() function
to print the array as a string to see the value paris. Or just use a debugger
and view the array in real time at a breakpoint.
|
|
|
|