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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php