ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:setconnectionparameter

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
v5:reference:connection:setconnectionparameter [2022/07/13 03:30] – [IDM DB2] mnewnhamv5:reference:connection:setconnectionparameter [2022/07/13 03:47] (current) – [IDM DB2] mnewnham
Line 98: Line 98:
 </code> </code>
  
 +==== PDO Driver ====
 +Any parameter from the PHP [[https://www.php.net/manual/en/pdo.setattribute|PDO Attribute List]]
 +
 +<code php>
 +/*
 + * Example Setting Timeout Duration
 + */
 +$db->setConnectionParameter(PDO::ATTR_TIMEOUT,60);
 +$db->connect(mysql:$dsn,'user','password');
 +</code>
v5/reference/connection/setconnectionparameter.txt · Last modified: 2022/07/13 03:47 by mnewnham