Skip site navigation (1) Skip section navigation (2)

Form Class ADOdb Code Conversion Problem

From: <operationsengineer1(at)yahoo(dot)com>
To: "'pgsql-novice(at)postgresql(dot)org'" <pgsql-novice(at)postgresql(dot)org>
Subject: Form Class ADOdb Code Conversion Problem
Date: 2005-04-18 18:23:29
Message-ID: 20050418182330.52197.qmail@web52406.mail.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-novice
i have the following code that i need to decipher and
put into an adodb format.

$options=array(""=>"Select an user");
while($row=database_fetch_row($result))
  $options[$row[0]]=$row[1];

i thought this would work...

$options=array(""=>"Select an user");
while (!$rs->EOF) {
$options[$fields[0]]=$fields[1];
$rs->MoveNext();}

but it didn't.

the bottom line is i am trying to get ADOdb to create
an array where each array element conists of 2 values
- the customer_id and the the customer_name
(fields(0), fields(1)).  I pull these from the
database.

i'm using manuel lemos' form class.  when i get the
array $options set up right, i should be able to plug
it into lemos' form declaration and it should populate
my list box.

how can i use adodb to set such an array up?

tia...


		
__________________________________ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide

pgsql-novice by date

Next:From: tövisDate: 2005-04-18 19:02:31
Subject: record chain
Previous:From: Walker, Jed SDate: 2005-04-18 18:07:07
Subject: Authentication problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group