| От | |
|---|---|
| Тема | Form Class ADOdb Code Conversion Problem |
| Дата | |
| Msg-id | 20050418182330.52197.qmail@web52406.mail.yahoo.com обсуждение |
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера