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");
}
|
|
|
 |
|