ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:database:pdo_new

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:database:pdo_new [2022/04/02 18:41] – [Description] fix broken link to old PDO page dregadv5:database:pdo_new [2023/01/24 04:00] (current) mnewnham
Line 1: Line 1:
-====== PDO ======+====== PDO (new) ====== 
 +<WRAP important> 
 +This is still [[https://github.com/ADOdb/ADOdb/pull/826|under development]].  
 +Feedback is welcome, just add your comments in the pull request. 
 +</WRAP> 
 ~~NOTOC~~ ~~NOTOC~~
 <WRAP right box round 300px> <WRAP right box round 300px>
Line 125: Line 130:
  
   * This driver requires the installation of the IBM DB2 client   * This driver requires the installation of the IBM DB2 client
 +  * See the [[v5:database:ibm_db2|Preferred Driver]] page for more information about building DSNs for use with DB2 connections.
  
 ------------------------------------------------------- -------------------------------------------------------
Line 132: Line 138:
 $db   = ADOnewConnection('pdo\ibm'); $db   = ADOnewConnection('pdo\ibm');
  
-$dsn = 'hostname=192.168.86.141;protocol=tcpip;port=50000;';+$dsn = 'hostname=192.168.86.141;protocol=tcpip;port=25010;';
 $dsn.= 'database=SAMPLE;uid=db2inst1;pwd=somepassword'; $dsn.= 'database=SAMPLE;uid=db2inst1;pwd=somepassword';
 $user = ''; $user = '';
v5/database/pdo_new.1648917704.txt.gz · Last modified: 2022/04/02 18:41 by dregad