Quantcast
Channel: Alan Seiden, Author at Seiden Group
Viewing all articles
Browse latest Browse all 139

How to Query IBM i Data with PHP and PDO_ODBC

$
0
0

Of the PHP extensions that can connect to IBM i Db2, we recommend PDO_ODBC whenever possible. Although the classic extensions (ibm_db2, PDO_IBM) and older ODBC continue to work, we prefer PDO_ODBC for several reasons: PDO_ODBC supports many databases and PHP frameworks PDO’s fetchAll() can retrieve all rows at once, to fetch small recordsets quickly Seiden CommunityPlus+ PHP supports using PDO_ODBC and the classic Db2 extensions together The PHP Toolkit can connect over PDO_ODBC Supports stored procedure output parameters better than other extensions Example script using PDO_ODBC to query the sample QCUSTCDT table We included try/catch blocks to demonstrate good error...

The post How to Query IBM i Data with PHP and PDO_ODBC appeared first on Seiden Group.


Viewing all articles
Browse latest Browse all 139

Trending Articles