I need to get a connection resource from an existing PDO. For example:
... $oPDO = new PDO($sOdbcDsn); $rOdbcConnection = $oPDO -> getConnection(); odbc_prepare($rOdbcConnection, $sQuery); ...
Conversely, I would like to transfer an existing connection to the PDO constructor. I want to be able to work with PDOs and direct connections separately.
Is there a way to extract a compound from PDO?
alkaponey
source share