CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Common.php - db_fill_array function

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.