Re: odbc_fetch_into ??

From: Date: Tue, 02 Jul 2002 14:05:31 +0000
Subject: Re: odbc_fetch_into ??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104911@lists.php.net to get a copy of this message
I tried this script and it showed all of the data correctly, so how do I make the define variable to work correctly? --clip-- // 97 columns are used, so I used 98 to stop the loop (this loop is for testing only) for($x=0;$x<98;$x++) { echo $user_detail[$x]."<br>"; } --clip-- "Scott Fletcher" <scott@abcoa.com> wrote in message news:20020702132549.51335.qmail@pb1.pair.com... > odbc_fetch_into didn't give me the result I expect it to. When returning > the data, It skipped some columns. With the register_global turned off. > How do I transform the defined data into an array to be use for > odbc_fetch_into? I never got it to work right. I will appreciate any of > the help here. Never had that problem with global_register turned on. > > --clip-- > define(CUSTOMER_ID,0); > define(CUSTOMER_NAME,1); > define(STATE,6); > > // blah blah blah > > if (odbc_fetch_row($result)) > { > odbc_fetch_into($result,$user_detail,1); > { > echo $user_detail[STATE]; > } > } > --clip-- > > I expect the result to give me the state name, not zip code or address > number, etc. > > Thanks, > Scott > >

« previous php.general (#104911) next »