note 40219 added to function.odbc-columns
| From: | netaminas at hotamil dot com | Date: | Wed, 25 Feb 2004 19:21:50 +0000 |
| Subject: | note 40219 added to function.odbc-columns | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65750@lists.php.net to get a copy of this message | ||
Connect with IBM Client Access 32-bit ODBC driver
To access table information in DB2 iSeries (AS/400) via ODBC Driver i've tried with this code
and worked!!!
$conn_ODBC = odbc_connect("DSN", "USER", "PASSW") or die;
$tabela = "table name in IBM iSeries";
$libname = "library name in IBM iSeries"
$res400 = odbc_columns($conn_ODBC, "DSN", $libname, $tabela, "%") or
die("<p><font color=#FF0000>Erro Na Leitura da Tabela ".$tabela." do
AS/400: ".odbc_errormsg());
echo odbc_result_all($res400);
Netaminas.com
PORTUGAL
----
Manual Page -- http://www.php.net/manual/en/function.odbc-columns.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40219
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40219&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40219&report=yes
Search -- http://master.php.net/manage/user-notes.php