Page 1 of 1

PDO_ODBC

Posted: Fri Dec 03, 2010 1:45 pm
by liljester
We have a software that uses ODBC to connect. I have successfully made connection and queries with odbc_connect with the following connection:
$db = odbc_connect("DRIVER=CONNX32;UID=username;PWD=password;DD=reg.cdd;NODE=server", "", "");

now, I would like to use PDO_odbc, but I cant seem to figure out how to get it to accept the connection string. I've tried:
$db = new PDO("odbc:DRIVER={CONNX32};UID=username;PWD=password;DD=reg.cdd;NODE=server", "", "");

i have tried many different variations on the above connection string, the returned exception message is almost always: "could not find driver". does anyone have any suggestions?