Scott,
odbc_columns can take a lot of arguments, but the only one you need to pass
is a connection id.
It'll return a result identifier containing lots of info on your field
names:
$conn_id = odbc_connect($dsn, $usr, $pwd) or die (odbc_error());
$result_id = odbc_columns($conn_id) or die (odbc_e
BDY.RTF
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
ROTECTED]
> Subject: RE: [PHP-DB] odbc_columns() and DB2
>
>
> Yeah, I'm using the Unified ODBC. The abstraction layer over DB2's CLI
> is faster than "real" ODBC.
>
> -Szii
>
> At 08:57 AM 1/19/01 -0500, Andrew Hill wrote:
> >Regarding the
Yeah, I'm using the Unified ODBC. The abstraction layer over DB2's CLI
is faster than "real" ODBC.
-Szii
At 08:57 AM 1/19/01 -0500, Andrew Hill wrote:
>Regarding the wrapper - I assume you are using the built-in unified-odbc...
>which isn't really ODBC.
>As I understand it unified-odbc is just
Regarding the wrapper - I assume you are using the built-in unified-odbc...
which isn't really ODBC.
As I understand it unified-odbc is just a common function set as a minimal
abstraction to several databases whose syntax calls are fairly similar.
Have you tried a 'real' ODBC layer? e.g. compile