odbc_fetch_into ??
| From: | Scott Fletcher | Date: | Tue, 02 Jul 2002 13:29:21 +0000 |
| Subject: | odbc_fetch_into ?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104905@lists.php.net to get a copy of this message | ||
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