CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Converting Array Values to Field Variables ? ?

Print topic Send  topic

Author Message
George L.
Posted: 03/13/2002, 6:43 AM

Can anyone get me started on how to fill Field Variables from an array?

I have been trying to use db_fill_array() as a way, but not having luck.

Here are the values that I get from the query and db_fill_array function.
$sCustQuery = "select igpaccountname from moc_igpaccount_tbl"; //Base SQL Query
$rows = db_fill_array($sCustQuery);

print_r ($rows);
Array ( [SB01] => [GE01] => [VZ01] => [VZ02] => [LCSC] => [CU04] => )

I want to make SB01, GE01, VZ01, etc. into a $fldField$n variable.

Any ideas?



Nicole
Posted: 03/14/2002, 1:57 AM

George,
try to use slightly different approach to get values from recordset:
$sCustQuery = "query_text";
$db->query($sCustQuery);
while ($db->next_record())
{
$row = $db->f("igpaccountname");
}

   


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.